Sage X3 SOAP Web服务命名空间链接已关闭

时间:2018-08-09 07:03:23

标签: xml soap sage-erp

我尝试像这样访问Sage X3 Web服务:

<?xml version="1.0"?>
<soapenv:Envelope
    xmlns:wss="http://www.adonix.com/WSS"
    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:Header/>
    <soapenv:Body>
        <wss:run soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
            <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>

但是我收到此错误消息:

<?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>
        <soapenv:Fault>
            <faultcode>soapenv:Server.userException</faultcode>
            <faultstring>org.xml.sax.SAXException: Deserializing parameter 'callContext':  could not find deserializer for type {http://www.adonix.com/WSS}CAdxCallContext</faultstring>
            <detail>
                <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">SERVEURNAME</ns1:hostname>
            </detail>
        </soapenv:Fault>
    </soapenv:Body>
</soapenv:Envelope>

我调查了一下,发现http://www.adonix.com/WSS链接已断开,所以我

xmlns:wss="http://www.adonix.com/WSS"

将不再工作,因此无法对callContext进行反序列化。

  • 是否还有其他指向wss命名空间的链接?
  • Sage x3 Web服务是否可以使用全新的肥皂信封?
  • 如果没有新链接,我是否有可能进行这项工作?

非常感谢您的时间。

0 个答案:

没有答案