Wsdl.exe用错误:无法从命名空间导入绑定“......”“......”

编程入门 行业动态 更新时间:2024-10-21 03:47:18
本文介绍了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.exe myWebService.wsdl myXsd1.xsd myType1.xsd myXsd2.xsd ...

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

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

更多推荐

Wsdl.exe用错误:无法从命名空间导入绑定“......”“......”

本文发布于:2023-11-10 02:30:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1574091.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:绑定   错误   空间   Wsdl   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!