Note that there are some explanatory texts on larger screens.

plurals
  1. POSOAP href XML mapping problem - which mapping helps?
    primarykey
    data
    text
    <p>I'm implementing SOAP client to existing service of which i have WSDL file.</p> <p>I use axis2 - <a href="http://axis.apache.org/axis2/java/" rel="nofollow">http://axis.apache.org/axis2/java/</a></p> <p>I'm having problem with the mapping to classes: WSDL specifies just 3 possible responses:</p> <pre><code> &lt;wsdl:types&gt; &lt;schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://request.pgw.muzo.com"&gt; &lt;import namespace="http://schemas.xmlsoap.org/soap/encoding/"/&gt; &lt;complexType name="Response"&gt; &lt;sequence&gt; &lt;element name="digest" nillable="true" type="xsd:string"/&gt; &lt;element name="ok" type="xsd:boolean"/&gt; &lt;element name="primaryReturnCode" type="xsd:int"/&gt; &lt;element name="secondaryReturnCode" type="xsd:int"/&gt; &lt;element name="requestId" type="xsd:long"/&gt; &lt;/sequence&gt; &lt;/complexType&gt; &lt;complexType name="OrderResponse"&gt; &lt;complexContent&gt; &lt;extension base="tns2:Response"&gt; &lt;sequence&gt; &lt;element name="orderNumber" nillable="true" type="xsd:string"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;complexType name="OrderStateResponse"&gt; &lt;complexContent&gt; &lt;extension base="tns2:OrderResponse"&gt; &lt;sequence&gt; &lt;element name="state" type="xsd:int"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/schema&gt; &lt;/wsdl:types&gt; </code></pre> <p>But the actual response is a bit complicated, actual response is not in the element but the elemnt contains attribute soap:href reffering to soap:multiRef element via it's id. (soap being <a href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow">http://schemas.xmlsoap.org/soap/envelope/</a>)</p> <pre><code>&lt;soapenv:Body&gt; &lt;ns1:queryOrderStateResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://webservices.pgw.muzo.com"&gt; &lt;queryOrderStateReturn href="#id0" /&gt; &lt;/ns1:queryOrderStateResponse&gt; &lt;multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:OrderStateResponse" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://request.pgw.muzo.com"&gt; &lt;digest xsi:type="soapenc:string"&gt;AAA&lt;/digest&gt; &lt;ok href="#id1" /&gt; &lt;orderNumber xsi:type="soapenc:string"&gt;232&lt;/orderNumber&gt; &lt;primaryReturnCode href="#id2" /&gt; &lt;secondaryReturnCode href="#id3" /&gt; &lt;state href="#id4" /&gt; &lt;requestId href="#id5" /&gt; &lt;/multiRef&gt; ... &lt;/soapenv:Body&gt; </code></pre> <p>Is this behaviour normal? (axis allows me to use xmlbeans or adb mapping but non of this works)</p> <p>I'm not much into XML, so i'm not shure if href if standard or not. (I cant change the service!)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload