如何在给定 wsdl 文件的情况下创建 WCF 代理类

发布于 2024-09-30 03:08:51 字数 532 浏览 0 评论 0原文

我有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

单身情人 2024-10-07 03:08:51

如果您将 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文