Php Magento 1.6 Soap v2属性和其他属性
我正在使用Magento 1.6,并尝试调用Soap API V2以获取产品信息(属性和其他属性) 如果使用soapUI或尝试用java生成请求以获取产品及其附加属性的信息,系统日志中将写入一个新条目,内容如下:Php Magento 1.6 Soap v2属性和其他属性,php,magento,soap,Php,Magento,Soap,我正在使用Magento 1.6,并尝试调用Soap API V2以获取产品信息(属性和其他属性) 如果使用soapUI或尝试用java生成请求以获取产品及其附加属性的信息,系统日志中将写入一个新条目,内容如下: 2012-01-20T08:33:04+00:00 DEBUG (7): array_merge() [<a href='function.array merge'>function.array-merge</a>]: Argument #2 is not an
2012-01-20T08:33:04+00:00 DEBUG (7): array_merge() [<a href='function.array merge'>function.array-merge</a>]: Argument #2 is not an array/opt/website/magento/app/code/core/Mage/Catalog/Model/Product/Api/V2.php
2012-01-20T08:33:04+00:00调试(7):数组_merge()[]:参数#2不是数组/opt/website/magento/app/code/core/Mage/Catalog/Model/Product/Api/V2.php
因此,我既不能获得这些属性,也不能在产品上更新这些属性
有人想到这个问题吗
谢谢我想好了 那个文件里好像有个“bug”!因此,如果只请求一个属性,则array_merge()函数无法加入该变量,因为$attribute变量不是数组 尝试使用soaoUI发送多个属性:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:Magento">
<soapenv:Header/>
<soapenv:Body>
<urn:catalogProductInfoRequestParam>
<sessionId>b595ed396f1901142cb284e4c280df82</sessionId>
<productId>7271</productId>
<!--Optional:-->
<store>0</store>
<!--Optional:-->
<attributes>
<additional_attributes>
<complexObjectArray>atribute</complexObjectArray>
<complexObjectArray>atribute</complexObjectArray>
<complexObjectArray>atribute</complexObjectArray>
<complexObjectArray>atribute</complexObjectArray>
<complexObjectArray>atribute</complexObjectArray>
</additional_attributes>
</attributes>
<!--Optional:-->
<identifierType/>
</urn:catalogProductInfoRequestParam>
</soapenv:Body>
</soapenv:Envelope>
b595ed396f1901142cb284e4c280df82
7271
0
安替比妥
安替比妥
安替比妥
安替比妥
安替比妥
您能否显示您的代码以从magento获取产品信息?太棒了!这为我节省了很多时间(已经花了太长时间)…非常感谢!