Magento 1.6 Soap v2 属性和附加属性
我正在使用 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 array/opt/website/magento/app/code/core/Mage/Catalog/Model/Product/Api/V2.php
所以我既无法获取这些属性,也无法在产品上更新这些属性。
有没有人有想法来解决这个问题!
谢谢
I am working with Magento 1.6 and try to call the Soap API V2 to get product-information (attributes and additional attributes).
If use soapUI or try to generate a request in java to get information of the product and its additional attributes a new entry gets written to the system log, saying:
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
So I neither get those attributes nor can I update these on a product.
Does anybody have idea to come over this issue!
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我想通了!
该文件中似乎有一个“错误”!因此,如果您仅请求一个属性,则 array_merge() 函数无法连接该变量,因为 $attribute 变量不是数组。
尝试使用 soaoUI 发送多个属性:
Well I figured it out!
There seems to be a "bug" in that file! So if you request only one attribute the array_merge() function can't join the variable because the $attribute variable is not an array.
Try to send multiple attributes with soaoUI: