We are consuming a webservice with the following xml fragment
< xs:element minOccurs="0" fixed="Text..." name="QBelVersicherung" type="xs:string" >
It is my understanding, that one can leave out the element "QBelVersicherung" because its minOccurs is set to "0".
After generating the webproxy thru VS 2005 we end up with a constructor that always initializes this field.
this.qBelVersicherungField = "Text....";
Since the element is sometimes left out in the xml message received from the server it is not possible to tell when it was send and when not, because the constructor always fills it. One way could be to edit the generated proxy class each time we update the
web reference, but this does not seem like a good solution. Is there a way to alter the behavior of the proxy generator tool?
Karl Haak www.karlhaak.de
View Complete Post