How to make a parameter optional in WSDL?
Posted
by user305069
on Stack Overflow
See other posts from Stack Overflow
or by user305069
Published on 2010-03-30T12:22:34Z
Indexed on
2010/05/25
1:21 UTC
Read the original article
Hit count: 373
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 able to find anything so far.
© Stack Overflow or respective owner