XSD 和 ASMX 服务

发布于 2024-08-08 04:13:35 字数 510 浏览 2 评论 0原文

我收到了一些 WSDL 和 XSD,定义了我的一个项目需要使用的服务。

现在这里有一个类似的结构:

XSD_EMPDetails.xsd - 定义一些 EmployerDetails

XSD_EMP.xsd - 已导入EmployerDetails xsd 和其他一些属性。 (xsd import)

EMP.wsdl - 导入 XSD_EMP.xsd (xsd import)

EMPServcie.wsdl - 导入 EMP .wsdl。 (wsdl import)

现在我需要使用 EMPService.wsdl 来调用服务。不确定如何使用 XSD 及其内部工作原理。请向我提供有关此主题的任何参考或任何帮助。

注意:目前我们正在开发 ASMX 2.0。无法使用 WCF。

I have received few WSDLs and XSD defining a service that I need to consume for one of my project.

Now here is a similar structure:

XSD_EMPDetails.xsd - Define few of the EmployerDetails

XSD_EMP.xsd - has imported EmployerDetails xsd and some more attributes. (xsd import)

EMP.wsdl - imports XSD_EMP.xsd (xsd import)

EMPServcie.wsdl - imports EMP.wsdl. (wsdl import)

Now I need to consume EMPService.wsdl to call service. Not sure how to use XSD and how it works internally. Please provide me any reference or any help on this topic.

Note: Currently we are working on 2.0 with ASMX. Cannot use WCF.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

爱情眠于流年 2024-08-15 04:13:35

只需使用 WSDL.EXE 并在命令行上指定所有文件即可。它将为您创建所有代理类,然后您可以将它们包含在您的项目中。


首先,尝试“WSDL /?”查看选项。我相信您想要的命令行是:

WSDL EMPServcie.wsdl EMP.wsdl XSD_EMP.xsd XSD_EMPDetails.xsd

Just use WSDL.EXE and specify all the files on the command line. It will create all of the proxy classes for you, and you can then include them in your project.


First of all, try "WSDL /?" to see the options. I believe the command line you want would be:

WSDL EMPServcie.wsdl EMP.wsdl XSD_EMP.xsd XSD_EMPDetails.xsd
梦亿 2024-08-15 04:13:35

您应该避免使用 wsdl.exe 和 ASMX,而使用 svcutil.exe - 该工具将为您生成WCF代理类。

You should avoid wsdl.exe and ASMX, and instead use svcutil.exe - this tool will generate WCF proxy classes for you.

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