That damn “FieldSpecified” bool in web references

Specified fieldNow and then I need to implement some Java AXIS web service calls for work.
Quite often in my C# proxy classes I have some objects with fields to set; and quite often it seems that some of my values are not considered by the server: why the heck?

99% of times it depends from *specified fields.

If a field is not required, e. g. string MyStringField, in the proxy class you have a bool MyStringFieldSpecified field, too: if you don’t set this to true, your string value will not be evalueted from server, even if you set it.

StackOverflow has an answered question, fortunately.

Leave a Reply

Your email address will not be published. Required fields are marked *