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綁定時遇到問題。