简体   繁体   English

将WSDL.exe与具有外部.xsd文件的本地WSDL文件一起使用

[英]Using WSDL.exe with local WSDL file that has external .xsd files

I'm trying to generate a Web Service stub from some wsdl/xsd files that a customer has sent us. 我正在尝试从客户发送给我们的一些wsdl / xsd文件生成Web Service存根。 I've done this with no problems using wsdl.exe before while everything was in the wsdl file, but when I run the file on the wsdl file I get an error message stating that is can't import one of the operations because one of the elements that is in an external xsd is missing. 我在使用wsdl.exe之前没有遇到任何问题,而所有内容都在wsdl文件中,但是当我在wsdl文件上运行该文件时,我收到一条错误消息,指出无法导入其中一个操作,因为其中一个缺少外部xsd中的元素。

I've tried putting a schemeLocation parameter in the element and it's still not working. 我已经尝试将一个schemeLocation参数放在元素中,它仍然无法正常工作。 Is there a way to state what the xsds are when calling wsdl.exe? 有没有办法说明调用wsdl.exe时xsds是什么?

I can't post the wsdl files because they covered by an NDA. 我无法发布wsdl文件,因为它们被NDA覆盖。

事实证明,如果在wsdl文件之后包含xsd文件,它可以有多个文件名作为WSDL.exe的参数...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM