You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Daniel Destro <da...@gmail.com> on 2006/04/10 22:41:16 UTC
SOAP request formated by Axis
Hi All,
I used SOAP monitor to investigate the SOAP that travel by the wire.
For a simple Web Service, Axis client sends this:
<?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:myMethod soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:MyService">
<name xsi:type="soapenc:string"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">Some Name
Here</name>
<salary href="#id0"/>
</ns1:myMethod>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="xsd:double"
xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/">333.33</multiRef>
</soapenv:Body>
</soapenv:Envelope>
But if I simply send this (bellow), it works as well:
<?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:myMethod soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:MyService">
<name xsi:type="soapenc:string">Ciclana</name>
<salary xsi:type="xsd:double">333.33</salary>
</ns1:myMethod>
</soapenv:Body>
</soapenv:Envelope>
*My question: I see no big difference between this two SOAP requests. Why
Axis is so verbose like that? Spacially concerning about that "multiRef"
thing.*
Thanks
Daniel