Hello everybody.
I'm trying to consume a web service that acccepts messages in SOAP encoding.
I have two classes (Class1 and Class2) and want to serialize them into the
following message:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap .org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:ns1="urn: MyNameSpace">
<SOAP-ENV:Body
SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/">
<ns1:modifyClas s1>
<class1 xsi:type="ns1:C lass1">
<class2 xsi:type="ns1:C lass2">
<field xsi:type="strin g">a string</field>
</class2>
</class1>
</ns1:modifyClass 1>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The problem is that proxy generated by wsdl utility serializes my classes
into message by using href attributes:
....<ns1:modify Class1>
<class1 href="#id1" />
</ns1:modifyClass 5>
<ns:Class1 id="id1" xsi:type="tns:C lass1">
<class2 href="#id2" />
</ns:Class1>
<ns:Class2 id="id2" xsi:type="tns:C lass2">
<field xsi:type="strin g">a string</field>
</ns:Class2>
Is it possible with SOAP encoding to make proxy generate nested elements and
not to use hrefs? What serialization attributes should I apply to my classes?
Thank for your time.
Kind regards.
I'm trying to consume a web service that acccepts messages in SOAP encoding.
I have two classes (Class1 and Class2) and want to serialize them into the
following message:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap .org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:ns1="urn: MyNameSpace">
<SOAP-ENV:Body
SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/">
<ns1:modifyClas s1>
<class1 xsi:type="ns1:C lass1">
<class2 xsi:type="ns1:C lass2">
<field xsi:type="strin g">a string</field>
</class2>
</class1>
</ns1:modifyClass 1>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The problem is that proxy generated by wsdl utility serializes my classes
into message by using href attributes:
....<ns1:modify Class1>
<class1 href="#id1" />
</ns1:modifyClass 5>
<ns:Class1 id="id1" xsi:type="tns:C lass1">
<class2 href="#id2" />
</ns:Class1>
<ns:Class2 id="id2" xsi:type="tns:C lass2">
<field xsi:type="strin g">a string</field>
</ns:Class2>
Is it possible with SOAP encoding to make proxy generate nested elements and
not to use hrefs? What serialization attributes should I apply to my classes?
Thank for your time.
Kind regards.