以WS-I合规性模式生成Web服务客户端

Jua*_* R. 6 soap web-services magento ws-i


我正在尝试使用Visual Studio 2010创建Web服务客户端.如果我在版本SOAP V2中使用wsdl文件,则客户端可以正常工作.
当我的属性设置WS-I Compliance,以Yes在Magento和重新编译VS2010 Web服务客户端,这是行不通的!某些方法从生成的WSDL文件中消失.

如果我使用该工具生成java Web服务客户端,我发现了同样的问题wsimport.
知道发生了什么事吗?

Jua*_* R. 2

原始 Magento Core 代码中存在一个错误,与“catalogProductAttributeRemove”操作(模块 core/Mage/Catalog)相关。

为了解决这个问题,我在模块 Catalog 的 wsi.xml 文件中注释了以下操作

 <!--wsdl:operation name="catalogProductAttributeRemove">
    <wsdl:documentation>Delete attribute</wsdl:documentation>
    <wsdl:input message="typens:catalogProductAttributeRemoveRequest" />
    <wsdl:output message="typens:catalogProductAttributeRemoveResponse" />
</wsdl:operation-->
Run Code Online (Sandbox Code Playgroud)

之后,使用 VS2010 自动构建 Web 服务客户端就可以完美运行了!