Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/326.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 不同格式的Axis SOAP响应是否相同?_Java_Php_Magento_Axis - Fatal编程技术网

Java 不同格式的Axis SOAP响应是否相同?

Java 不同格式的Axis SOAP响应是否相同?,java,php,magento,axis,Java,Php,Magento,Axis,我从不同的Magento安装中得到了两种不同的响应。它们被认为是相同的,应该都能工作,但我的Axis Java客户端应用程序无法解析第二个响应。我不知道某些较新版本的Axis是否可以同时解析这两个 问题是:从SOAP格式的视图来看,这两个响应是否应该被很好地解析为相同的结果 答复1: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magent

我从不同的Magento安装中得到了两种不同的响应。它们被认为是相同的,应该都能工作,但我的Axis Java客户端应用程序无法解析第二个响应。我不知道某些较新版本的Axis是否可以同时解析这两个

问题是:从SOAP格式的视图来看,这两个响应是否应该被很好地解析为相同的结果

答复1:

     <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento"
                        xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
                        xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <SOAP-ENV:Body>
             <ns1:salesOrderListResponse>
                 <result SOAP-ENC:arrayType="ns1:salesOrderEntity[24]" xsi:type="ns1:salesOrderEntityArray">
                     <item xsi:type="ns1:salesOrderEntity">
                         <increment_id xsi:type="xsd:string">100000056-1</increment_id>
                         <parent_id xsi:type="xsd:string">0</parent_id>  
...

100000056-1
0
...
答复2:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento"
                   xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
        <ns1:salesOrderListResponse>
            <result SOAP-ENC:arrayType="ns2:Map[30]" xsi:type="ns1:salesOrderEntityArray">
                <item xsi:type="ns2:Map">
                    <item>
                        <key xsi:type="xsd:string">increment_id</key>
                        <value xsi:type="xsd:string">200000281</value>
                    </item>
                    <item>
                        <key xsi:type="xsd:string">parent_id</key>
                        <value xsi:type="xsd:string">0</value>
                    </item>
...

增量标识
200000281
家长id
0
...
更新:
两个安装都使用相同的Magento版本1.3.2.4。第二次安装运行的是PHP5.2.13。它可能与PHP版本或已安装的PHP soap框架有关吗?

这肯定是因为您的安装中使用了soap框架。 看这里

顺便说一下,我们知道轴1.4存在以下问题:

<value xsi:type="xsd:string">200000281</value>
200000281
要在Axis中工作,它应该是:

<value xsi:type="soapenc:string">200000281</value>
200000281
寻找更多信息,看起来这和你面临的问题是一样的

是一条可能也能帮助你的线索