I get two different answers from different Magento installations. They are considered the same and both should work, but the second answer cannot be parsed by my Axis Java client application. And I do not know if any new version of Axis can analyze both.
The question arises: from the presentation form of the SOAP format, both of these answers were well analyzed with the same result?
Answer 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>
...
Answer 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>
...
Update: Both installations use the same version of Magento 1.3.2.4. The second installation runs PHP 5.2.13. Could this be due to the PHP version or installed PHP soap frameworks?
source
share