I have a web method with several parameters. The web method depends on only two fields, the rest are optional.
[OperationContract]
public string WarehouseContactInformation(int WAID (Required), string CN (Required), string CT (Optional), string CC (Optional), string CFN (Optional), string CD (Optional), string CE (Optional),string CW (Optional))
How to declare these parameters as optional so that when I call the Web method, I need to go through the fields for which I have values, for example:
WarehouseContactInformation(1,'Bill','00012311')
WarehouseContactInformation(1,'Bill','00012311','12415415','123525')
source
share