Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
In WCF Service The Operation contract expecting two input parameter, but I want to send only one parameter value so no problem WCF handle this with default value for the missed parameter ,but the service consumed application(Client Proxy) not allowing me to build the application how to resolve it?
Posted
Comments
Kornfeld Eliyahu Peter 7-Jan-15 5:50am    
Try passing null!
CHill60 7-Jan-15 7:18am    
Good enough for a solution!
Kornfeld Eliyahu Peter 7-Jan-15 7:24am    
Unless you like spam remove your email from your username!!!
parthi.study@gmail.com 7-Jan-15 8:39am    
Thanks Everyone .

1 solution

You can not use optional parameters for WCF methods but you can use NULL values instead of that. Here is a link explaining the same :-

http://stackoverflow.com/questions/22963789/can-you-use-optional-parameters-in-a-wcf-service-method
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900