无法导入wsdl:portType,wsdl:binding,wsdl:port

普拉纳夫·辛格

使用SVCUtil生成WCF代理时出现错误。错误是

Attempting to download metadata from 'net.pipe://localhost/WebServices/Mgmt.svc' using WS-Metadata Exchange. This URL does not support DISCO.
Error: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Referenced type 'SearchCriteria, Service.DataContracts, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null
t be used since it does not match imported DataContract. Need to exclude this type from referenced types.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IMgmt']


Error: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IMgmt']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='NetNamedPipeBinding_IMgmt']


Error: 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://tempuri.org/']/wsdl:binding[@name='NetNamedPipeBinding_IMgmt']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='Mgmt']/wsdl:port[@name='NetNamedPipeBinding_I


Generating files...
Warning: No code was generated.
If you were trying to generate a client, this could be because the metadata documents did not contain any valid contracts or services
or because all contracts/services were discovered to exist in /reference assemblies. Verify that you passed all the metadata documents to the tool.

Warning: If you would like to generate data contracts from schemas make sure to use the /dataContractOnly option.

一切正常,直到我在数据协定中添加枚举成员。

普拉纳夫·辛格

原来是,我们DataContract在生成代理时正在重用,并且旧的DataContract dll未被从引用位置替换。

还可以从有问题的响应中获取帮助,此wcf错误错误自定义工具警告不能导入wsdlporttype吗?

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

无法导入wsdl:portType,wsdl:binding,wsdl:port

来自分类Dev

WSDL中portType和绑定背后的原理

来自分类Dev

Silverlight Web服务更新无法导入wsdl

来自分类Dev

无法读取WSDL错误

来自分类Dev

无法连接到WSDL

来自分类Dev

无法在SOAPUI中导入WSDL文件-弹出NT身份验证(加载WSDL时出错)

来自分类Dev

Grails:无法从wsdl2java导入类

来自分类Dev

无法从WSP检索WSDL内容

来自分类Dev

无法从WSDL生成Java代码

来自分类Dev

无法访问WSDL端点

来自分类Dev

从WSDL URL生成WSDL文件

来自分类Dev

WSDL导入问题Delphi XE2

来自分类Dev

Intellij IDEA无法从JAVA生成WSDL

来自分类Dev

SOAP错误:解析WSDL:无法从'https加载

来自分类Dev

无法解组从WSDL生成的存根的响应

来自分类Dev

Spring Maven-无法生成WSDL

来自分类Dev

无法在Eclipse中的WSDL中解析定义,可能会出现Eclipse导入错误?

来自分类Dev

WSDL导入“位置”属性-vs- XSD导入“ schemaLocation”属性

来自分类Dev

wsdl网址中的“ .wsdl”和“?wsdl”之间的区别

来自分类Dev

通过 Java 解析 WSDL(WSDL URL)

来自分类Dev

wsdl2java错误:生成Java代码时出现“无法创建wsdl定义”

来自分类Dev

php soapclient wsdl SOAP错误:解析WSDL:无法从中加载

来自分类Dev

Aramex引发“ SOAP错误:解析WSDL:无法从'Shipping.wsdl'加载”

来自分类Dev

Maven cxf-codegen-plugin并在wsdl中导入

来自分类Dev

带有导入的命名空间的Eclipse WSDL验证错误

来自分类Dev

WSDL导入不适用于savon 2.3.0

来自分类Dev

使用svcutil导入wsdl未能进行安全配置

来自分类Dev

如何导入CA为WSDL客户端生成目的?

来自分类Dev

将 PHP 生成的 WSDL 导入 Visual Studio 2017

Related 相关文章

热门标签

归档