wsdl.exe 错误:无法从命名空间“..."导入绑定“..." [英] wsdl.exe Error: Unable to import binding '...' from namespace '...'

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

问题描述

在我创建的 WSDL 上运行 wsdl.exe 时,我收到此错误:

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

错误:无法从命名空间SomeNS"导入绑定SomeBinding".

Error: Unable to import binding 'SomeBinding' from namespace 'SomeNS'.

  • 无法导入操作someOperation".
  • 这些成员可能不是派生的.

我正在使用文档文字样式,据我所知,我正在遵守所有规则.

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文件.因此,在 wsdl 命令的末尾除了 .wsdl 之外还包含/导入了 .xsd 文件,如下所示:

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.exe myWebService.wsdl myXsd1.xsd myType1.xsd myXsd2.xsd ...

Wsdl 给出了一些警告,但它确实创建了一个正常的服务接口.

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆