【发布时间】:2012-03-21 15:04:05
【问题描述】:
我正在尝试通过 SOAP API 获取特定产品属性的选项列表。
在 .NET 中使用 Magento 1.6.2.0 和符合 WS-I 的 SOAP API V2
电话是
client.catalogProductAttributeOptions(sessionId, attribute.attribute_id, storeView);
要获取属性 id,我会使用之前的属性代码获取属性。 我将当前 sessionId 传递给属性 attribute_id 和 storeView。
有趣的是,在一个 magento 安装上它工作正常,我得到了所有选项。 但是在其他类似的安装中,我得到了以下 FaultException:
服务器堆栈跟踪:在 System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime 操作,ProxyRpc& rpc) 在 System.ServiceModel.Channels.ServiceChannel.Call(字符串动作, Boolean oneway, ProxyOperationRuntime 操作, Object[] ins, Object[] 出局,TimeSpan 超时)在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime 操作)在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage 留言)
在 [0] 处重新抛出异常:在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(消息数据& msgData,Int32 类型)在 MagentoService.Mage_Api_Model_Server_Wsi_HandlerPortType.catalogProductAttributeOptions(catalogProductAttributeOptionsRequest 请求)
编辑:
我自己进行的安装之一,这是我创建 .NET 代理的地方。在这里它工作正常。另一个安装是相同的 magento 版本,但安装在另一台机器上。此外,还安装了 NETZKOLLEKTIV 的核心 API 扩展。 每个安装在其目录中都有不同的产品和类别。这有什么区别吗? 两者都设置为符合 WS-I。
如果有人能给我一些提示,那就太好了。 谢谢
【问题讨论】:
-
两种安装方式有什么区别?
-
多一点信息会很好:安装在同一台机器上吗?它们都设置为 WS-I 合规性吗?他们有相同的产品吗?
-
感谢您的回复。我编辑了我的问题以提供更多信息。如果您需要更多信息,请告诉我。
标签: php .net magento soap proxy