0

我有一个 WSO2 数据服务,我正在使用 WSDL 1.1 并尝试使用 WCF 添加服务参考 ins VS2010,它会生成 3 个我无法弄清楚的 WSDL 错误。

    Warning 1   Custom tool warning: Cannot import wsdl:binding
Detail: The given key was not present in the dictionary.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://ws.wso2.org/dataservice']/wsdl:binding[@name='MzpIDMgmtHttpBinding'] C:\dev\AssociateEntityService\AssociateEntityService\Service References\MzIdManagementServiceReference\Reference.svcmap 1   1   AssociateEntityService

Warning 2   Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://ws.wso2.org/dataservice']/wsdl:binding[@name='MzpIDMgmtHttpBinding']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://ws.wso2.org/dataservice']/wsdl:service[@name='MzpIDMgmt']/wsdl:port[@name='HTTPEndpoint']    C:\dev\AssociateEntityService\AssociateEntityService\Service References\MzIdManagementServiceReference\Reference.svcmap 1   1   AssociateEntityService

Warning 3   Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://ws.wso2.org/dataservice']/wsdl:binding[@name='MzpIDMgmtHttpBinding']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://ws.wso2.org/dataservice']/wsdl:service[@name='MzpIDMgmt']/wsdl:port[@name='SecureHTTPEndpoint']  C:\dev\AssociateEntityService\AssociateEntityService\Service References\MzIdManagementServiceReference\Reference.svcmap 1   1   AssociateEntityService

我不能发布 WSDL,因为它很敏感。此外,它只发生在三个生成的绑定之一。有没有办法抑制绑定的生成?我在这里找到了一种压制http://wso2.org/library/3821的方法。它仅在 Html 绑定上存在问题。

4

1 回答 1

1

我使用引用的文章来禁用 HttpBinding 的生成。顺便说一句,这篇文章是错误的,你必须做“disableREST”

于 2013-05-07T15:13:26.447 回答