脚本宝典收集整理的这篇文章主要介绍了如何获取Magento产品的所有附加属性而不明确指定它们,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
在SOAP Call:cataLOGPRoductInfo中有其他属性参数,看起来我必须明确指定其他属性名称.
我使用Java和apache Axis连接到Mangeto SOAP API,代码如下:
stub.catalogProductInfo(sessionId,"118",null,null); call declaration: public com.magentocommerce.api.CatalogProductReturnEntITy catalogProductInfo(java.lang.String sessionId,java.lang.String productId,java.lang.String StoreView,com.magentocommerce.api.CatalogProductRequestattributes attributes) throws java.rmi.remoteexception { attributes parameter constructor declaration: public CatalogProductRequestAttributes( java.lang.String[] attributes,java.lang.String[] additional_attributes) {
但我必须以某种方式指定最后一个参数以获得所有其他属性.
是否可以通过SOAP API完成?
更新:“*”作为属性不起作用
CatalogProductRequestAttributes attrs = new CatalogProductRequestAttributes(); attrs.setattributes(new String[] {"*"}); attrs.setAdditional_attributes(new String[] {"*"});
以上是脚本宝典为你收集整理的如何获取Magento产品的所有附加属性而不明确指定它们全部内容,希望文章能够帮你解决如何获取Magento产品的所有附加属性而不明确指定它们所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。