我有一个带有多个参数的web方法. Web方法仅依赖于2个字段,其余字段都是可选的.
[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))
如何将这些参数声明为可选参数,以便在调用Web方法时,我只需要通过我有值的字段,例如:
WarehouseContactInformation(1,'Bill','00012311') WarehouseContactInformation(1,'00012311','12415415','123525')