I am still stuck on this. Can someone help me? Does axis2 support
multi-ref soap request?
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy the original message all
copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted by this
email.
Please do not print this email unless it is absolutely necessary.
--- Begin Message ---
I am newbie to webservice. My axis2 webservice is generated using
wsdl2java tool with XMLBeans data binding extension. Webservice client
is sending multiref soap envelope in the request. My WSDL is
document/encoded.
I have attached my WSDL file and the client request soap envelope that I
receive.
I am receiving the values of input parameters as null in the service.
Can someone help me to find out why? Do I need to do any more changes?
please help
Also, in the web service response, content-length is not getting set. My
web service is deployed on tomcat. I also tested this with the
standalone axis2 server.
My client request is using HTTP/1.0 protocol and hence tranfer-encoding
chunked is disabled.
Any response should be of great help.
Thanks and regards,
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="test" targetNamespace="http://www.example.org/test/" xmlns:tns="http://www.example.org/test/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<xsd:schema targetNamespace="http://www.example.org/test/">
<xsd:element name="getIPAddress">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="statusCode" type="xsd:int">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="getIPAddressRequest">
<wsdl:part name="parameters" element="tns:getIPAddress">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="test">
<wsdl:operation name="getIPAddress">
<wsdl:input message="tns:getIPAddressRequest">
</wsdl:input>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="testSOAP" type="tns:test">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getIPAddress">
<soap:operation soapAction="http://www.example.org/test/getIPAddress" style="document"/>
<wsdl:input>
<soap:body parts="parameters" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:input>
<wsdl:output>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="test">
<wsdl:port name="testSOAP" binding="tns:testSOAP">
<soap:address location="http://www.example.org/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
<?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:getIPAddress
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://www.example.org/test/">
<data href="#id0" />
</ns1:provisionComplete>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:data"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://www.example.org/test/">
<name xsi:type="xsd:string">100.100.100.100</name>
<statusCode href="#id1" />
</multiRef>
<multiRef id="id1" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:statusCode"
xmlns:ns3="http://www.example.org/test/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
1
</multiRef>
</soapenv:Body>
</soapenv:Envelope>
--- End Message ---