我正在对两个不同的Magento Community 1.6.2安装进行调用'catalogProductAttributeSetList',它们以不同的格式返回结果。Magento社区1.6.2服务器的不同响应
服务器1
WSDL:www.indo-pac.biz/api/v2_soap?wsdl=1 PHPINFO:www.indo-pac.biz/info.php
响应:
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 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:catalogProductAttributeSetListResponse>
<result SOAP-ENC:arrayType="ns1:catalogProductAttributeSetEntity[2]" xsi:type="ns1:catalogProductAttributeSetEntityArray">
<item xsi:type="ns1:catalogProductAttributeSetEntity">
<set_id xsi:type="xsd:int">9</set_id>
<name xsi:type="xsd:string">Cameras</name>
</item>
<item xsi:type="ns1:catalogProductAttributeSetEntity">
<set_id xsi:type="xsd:int">4</set_id>
<name xsi:type="xsd:string">Default</name>
</item>
</result>
</ns1:catalogProductAttributeSetListResponse>
**服务器2 **
WSDL:http://magento.a-dot.co.uk/api/v2_soap?wsdl=1 的phpinfo:http://s33667.gridserver.com/gs-bin/phpinfo.php-stable
Response:
<?xml version="1.0" encoding="UTF-8"?>
<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:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:catalogProductAttributeSetListResponse>
<result SOAP-ENC:arrayType="ns2:Map[2]" xsi:type="ns1:catalogProductAttributeSetEntityArray">
<item xsi:type="ns2:Map">
<item>
<key xsi:type="xsd:string">set_id</key>
<value xsi:type="xsd:string">4</value>
</item>
<item>
<key xsi:type="xsd:string">name</key>
<value xsi:type="xsd:string">Default</value>
</item>
</item>
<item xsi:type="ns2:Map">
<item>
<key xsi:type="xsd:string">set_id</key>
<value xsi:type="xsd:string">9</value>
</item>
<item>
<key xsi:type="xsd:string">name</key>
<value xsi:type="xsd:string">Ladies Shoes</value>
</item>
</item>
</result>
</ns1:catalogProductAttributeSetListResponse>
有人可以解释为何结果不同?请求是完全一样的。我使用soapUI 4.0.1来验证发送的响应(我也亲眼目睹了它使用Java)
我怀疑它与服务器上的SOAP库不匹配,但如何验证它?
谢谢
嗨艾伦,我已经检查 - 两家商店都有WS-I合规性设置为NO – 2012-03-19 17:28:49
请确保您检查各种商店配置级别(也就是说,它可以无数其他事情) – 2012-03-19 18:05:15
@Alan - 是的,你是对的,第二台服务器的输出与启用的** WS-I **模式相似。 – 2012-03-20 11:23:50