.net - WCF: why do I have to set [field]specified manually to send value to server? -


I created a WCF proxy, in which the message contract request class is an integer [field name]. I tried to send value to the server, but the value always came to 0 until manually [fieldNameSpecified] was not manually set.

Is there something wrong with proxy generation or WCF that was designed like this? What are the reasons behind the [specified] areas, especially if there is no specific field in the proxy classes of string / grids?

Thank you in advance

This is because of supporting XML serializer Was never updated for faucet, so the way it is dealt with using alternative values ​​(eg, an int, which can not be set to empty) has an XxxS specified Boolean field to keep, allowing you to tell the serializer Mr. went that during a related field or serialization.


Comments