本文介绍了Wsdl.exe用错误:无法从命名空间导入绑定“......”“......”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行Wsdl.exe用在我创建了一个WSDL,我得到这个错误:

When running wsdl.exe on a wsdl I created, I get this error:

Error: Unable to import binding 'SomeBinding' from namespace 'SomeNS'.
- Unable to import operation 'someOperation'.
- These members may not be derived.

我使用的文档 - 文字风格,并以我所知,我已经遵守了所有规则。

I'm using the document-literal style, and to the best of my knowledge I'm following all the rules.

要概括起来讲,我有一个有效的WSDL,但该工具不喜欢它。

To sum it up, I have a valid wsdl, but the tool doesn't like it.

我正在寻找的是如果某人有大量的与Wsdl.exe工具的经验,知道一些秘密的疑难杂症,我不知道。

What I'm looking for is if someone has lots of experience with the wsdl.exe tool and knows about some secret gotcha that I don't.

推荐答案

我已经传达给了同样的错误消息来了。挖了一会后,发现了一个可以提供除wsdl文件XSD文件。因此,除了包含/导入xsd文件,以在WSDL命令结束的.wsdl如下:

I have came across to the same error message. After digging for a while, found out that one can supply xsd files in addition to wsdl file. So included/imported .xsd files in addition to .wsdl at the end of the wsdl command as follows:

Wsdl.exe用myWebService.wsdl myXsd1.xsd myType1.xsd myXsd2.xsd ...

WSDL提出了一些警告,但它确实创造一个好的服务接口。

Wsdl gave some warnings but it did create an ok service interface.

这篇关于Wsdl.exe用错误:无法从命名空间导入绑定“......”“......”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 09:56