I had a function in WCF that takes one parameter and is being called from another application. Now, I want to add a optional parameter in the WCF so that it does not affect the method being called in the previous code.
getData(int number, int type=0)
I tried using default value in the second parameter, setting [WebGet(UriTemplate
but no success. If I use IsRequired
property of DataMember
then it will change the method call of previous code as well.
I don't want to create another WCF method. Is there any other workaround for it ?