Magento Soap 接口,无效 WSDL
我遇到一个问题,Magento 的肥皂接口(http://172.16.0.119/index.php/api/v2_soap?wsdl)正在生成无效的 wsdl。当我尝试使用 Visual Studio 生成代理时,出现错误,例如文档中多次声明了多个元素
来源:行:44 列:4 验证错误:全局元素 'http://schemas.xmlsoap.org/soap/encoding/:Array' 已经 声明
我认为我的 magento 安装中可能有一些损坏的东西,因为我有几个插件正在运行,所以我重新安装了 Magneto 1.6.1,没有插件或任何东西。我仍然收到此错误。还有其他人遇到过这个问题吗?你是怎么解决的?
提前致谢。
I am having a problem where the soap interface to Magento (http://172.16.0.119/index.php/api/v2_soap?wsdl) is generating invalid wsdl. When I try to generate a proxy using visual studio I get an error that there are several elements declared more than once in the document for example
Source: Line: 44 Column: 4 Validation Error: The global element
'http://schemas.xmlsoap.org/soap/encoding/:Array' has already been
declared
I thought that perhaps I had something corrupted in my magento install as I have several plugins and such running, so I done a fresh install of magneto 1.6.1 with no plugins or anything. I still receive this error. Has anybody else had this problem? How did you resolve it?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
管理模块中有一个设置,允许您设置 WS-I (http://en.wikipedia .org/wiki/Web_Services_Interoperability)合规性标记为True。在更改此标志之前,我收到了 VS2010 和 Magento API 的许多问题。
可以在系统->中找到。配置->服务-> Magento Core API
希望这会有所帮助。
There is a setting within the admin module that allows you to set the WS-I (http://en.wikipedia.org/wiki/Web_Services_Interoperability) Compliance flag to True. I was receiving a number of issues with VS2010 and the Magento API until I changed this flag.
It can be found in System -> Configuration -> Services -> Magento Core API
Hope this helps.