Perfect!

I used the flag "-u LITERAL" when generating the WSDL and it works.


On 4/11/06, Anne Thomas Manes < [EMAIL PROTECTED]> wrote:
Don't use SOAP encoding. Use document/literal with the "wrapped" convention instead.
(You'll get better performance, too.)

Anne

On 4/10/06, Daniel Destro <[EMAIL PROTECTED]> wrote:
Hi all,
 
I was wondering why Axis 1.3 generates a very complicated and verbose SOAP response, including all this multiRef tags.
 
For my service, that has a method that returns a data structre (object), it generates the following SOAP response:
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:xsd="
http://www.w3.org/2001/XMLSchema "
 xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance ">
<soapenv:Body>
  <ns1:myMethodResponse soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/ "
   xmlns:ns1="urn:MyService">
    <myMethodReturn href="">  </ns1:myMethodResponse>
  <multiRef id="id0" soapenc:root="0"
   soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/ "
   xsi:type="ns2:MyMethodResult"
   xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/ " xmlns:ns2="urn:MyService">
    <id xsi:type="soapenc:long">0</id>
    <name xsi:type="soapenc:string">POSTAL</name>
    <birthDate xsi:type="xsd:dateTime" xsi:nil="true"/>
  </multiRef>
</soapenv:Body>
</soapenv:Envelope>
 
Insteadm I would like something similar to:
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:xsd="
http://www.w3.org/2001/XMLSchema "
 xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance ">
<soapenv:Body>
  <ns1:myMethodResponse soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/ "
   xmlns:ns1="urn:MyService">
    <myMethodReturn xsi:type="ns2:MyMethodResult">
      <id xsi:type="soapenc:long">0</id>
      <name xsi:type="soapenc:string">POSTAL</name>
      <birthDate xsi:type="xsd:dateTime" xsi:nil="true"/>
    </myMethodReturn>
  </ns1:myMethodResponse>
  </multiRef>
</soapenv:Body>
</soapenv:Envelope>
 
Thas is WAY MUCH MORE SIMPLE.
 
Is there any way to make it more simple? More straight forward and avoid this more complex SOAP?

Thanks
Daniel


Reply via email to