I try to access an Sage X3 Webservice like that:
<?xml version="1.0"?>
<soapenv:Envelope
xmlns:wss="">http://www.adonix.com/WSS"
xmlns:soapenv="">schemas.xmlsoap.org/.../"
xmlns:xsd="">www.w3.org/.../XMLSchema"
xmlns:xsi="">www.w3.org/.../XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<wss:run soapenv:encodingStyle="">schemas.xmlsoap.org/.../">
<callContext xsi:type="wss:CAdxCallContext">
<codeLang xsi:type="xsd:string">AAA</codeLang>
<poolAlias xsi:type="xsd:string">AAA</poolAlias>
<codeUser xsi:type="xsd:string">AAA</codeUser>
<password xsi:type="xsd:string">AAA</password>
<requestConfig xsi:type="xsd:string"></requestConfig>
</callContext>
<publicName xsi:type="xsd:string">AAA</publicName>
<inputXml xsi:type="xsd:string">
<![CDATA[
<PARAM><GRP ID="GRP1" ><FLD NAM="CRN" >TEST</FLD><FLD NAM="BPRNUM" ></FLD><FLD NAM="BPAADD" ></FLD></GRP><TAB SIZE="3" ID="GRP2" ><LIN><FLD NAM="BPAADDLIG" >TEST</FLD></LIN><LIN><FLD NAM="BPAADDLIG" >TEST</FLD></LIN><LIN><FLD NAM="BPAADDLIG" ></FLD></LIN></TAB><GRP ID="GRP3" ><FLD NAM="POSCOD" >TEST</FLD><FLD NAM="CTY" >TEST</FLD></GRP><TAB SIZE="2" ID="GRP4" ><LIN><FLD NAM="BPRNAM" >TEST</FLD></LIN><LIN><FLD NAM="BPRNAM" ></FLD></LIN></TAB><GRP ID="GRP5" ><FLD NAM="ZSIRET" >0</FLD></GRP></PARAM>
]]>
</inputXml>
</wss:run>
</soapenv:Body>
</soapenv:Envelope>
But i get this error message:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="">schemas.xmlsoap.org/.../" xmlns:xsd="">www.w3.org/.../XMLSchema" xmlns:xsi="">www.w3.org/.../XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXException: Deserializing parameter 'callContext': could not find deserializer for type {www.adonix.com/WSS}CAdxCallContext</faultstring>
<detail>
<ns1:hostname xmlns:ns1="">xml.apache.org/.../">SERVEURNAME</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
I investigate and i found that the http://www.adonix.com/WSS link is down so my
xmlns:wss="">http://www.adonix.com/WSS"
wont work anymore so the callContext cant be deserialize.
- Is there any other link to the wss namespace ?
- Is there a brand new soap enveloppe i can use for Sage x3 webservice ?
- Is there any chance that i can make this work without a new link ?
Thanks a lot for your time.