2013-05-06 190 views
0

我有一个WSO2数据服务,我正在使用WSDL 1.1并尝试使用WCF添加服务引用VS2010以及它会产生3个我无法弄清楚的WSDL错误。DSS WSDL1.1 WCF给出无法导入wsdl:binding,无法导入wsdl:port,无法导入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绑定时遇到问题。

回答

1

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