I have a WebService API which needs 2 of its parameters to be optional in the WSDL
public wsProxy[] Insert(wsProxy[] proxies, string loginname, string password, bool returnNewData)
{
//code here
}
I need to a way to show loginname
and password
as optional in the WSDL.
Is there any way to do this in C#. Can I maybe add an tag in front of the parameters like this [optional]loginname
?
I have been looking around but haven't been ab开发者_JS百科le to find anything so far.
They will, by default, appear as optional in the WSDL generated by WCF (let me know if you know of a way to disable this horrid behavior).
精彩评论