首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >DSS WSDL1.1 WCF提供了无法导入wsdl:binding,无法导入wsdl:port,无法导入wsdl:

DSS WSDL1.1 WCF提供了无法导入wsdl:binding,无法导入wsdl:port,无法导入wsdl:
EN

Stack Overflow用户
提问于 2013-05-07 01:56:29
回答 1查看 290关注 0票数 0

我有一个WSO2数据服务,我使用WSDL1.1并尝试使用WCF在VS2010中添加一个服务引用,但它生成了3个我无法确定的WSDL错误。

代码语言:javascript
复制
    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绑定上有问题。

EN

回答 1

Stack Overflow用户

发布于 2013-05-07 23:13:26

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16404379

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档