I'm in the process of implementing a WCF/Soap service operation and have defined several of the data contract's members as not required (IsRequired = false
).
My question relates to the following two scenarios...
- The client supplies a null value for the contract element (i:nil="true")
- The client does not supply the optional element (i.e. they send me a partial contract)
This problem is significant for both complex and nullable primitive types. From what I can determine, the .Net serializer returns null
in both scenarios, so my question is, can anyone recommend a way to determine whether an optional parameter was supplied in the SOAP request?