如何在给定 wsdl 文件的情况下创建 WCF 代理类
我有 wsdl 文件。但我无权访问部署该文件的文件。 我需要使用 WSDl 文件生成代理类。我在使用 svcutil.ece 生成代理文件时遇到错误
错误:无法导入 wsdl:port 详细信息: 找不到定义 http://www.cii.com/Soa/Foundation:Basi cHttp。服务描述与 名称空间 htt://www.cii.com/Soa/Foundation 是 丢失的。参数名称:名称 XPath to 错误来源: //wsdl:definitions[@targetNamespace='http://www.cii.com/Soa/Foundation/MessageDefinition.xsd']/wsdl:service[@name='CareerServicesS 服务']/wsdl:port[@name='BasicHttp']
谢谢, 肖丹
I have wsdl file with me.But i don't have access to the file where it is deployed.
I need to generate proxy class using the WSDl file. I am getting error while using svcutil.ece to generate proxy file
Error: Cannot import wsdl:port Detail:
Cannot find definition for
http://www.cii.com/Soa/Foundation:Basi
cHttp. Service Description with
namespace
htt://www.cii.com/Soa/Foundat ion is
missing. Parameter name: name XPath to
Error Source:
//wsdl:definitions[@targetNamespace='http://www.cii.com/Soa/Foundation/MessageDefinition.xsd']/wsdl:service[@name='CareerServicesS
ervice']/wsdl:port[@name='BasicHttp']
Thanks,
Shodhan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您将 svcutil 与本地下载的 WSDL 文件一起使用,则还需要下载所有相关的 XSD 文件并将它们传递到 svcutil 命令行。 Windows / .NET SDK 中的 disco.exe 是一个用于自动下载所有相关 XSD 文件的好工具(并且可能有一个 svcutil 模式也可以执行此操作,但不太记得了)。
If you are using svcutil with a locally downloaded WSDL file, you need to also download all related XSD files and pass them on the svcutil command line as well. A great tool for automatically downloading all related XSD files is disco.exe in the Windows / .NET SDK (and there may be a svcutil mode that does it as well, don't remember for sure).