我有一个WSO2数据服务,我使用WSDL1.1并尝试使用WCF在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绑定上有问题。
发布于 2013-05-07 23:13:26
我引用了这篇文章来禁用HttpBinding的生成。顺便说一句,这篇文章是错的,你必须做"disableREST“
https://stackoverflow.com/questions/16404379
复制相似问题