如何生成Web服务的XSD文件 [英] How to generate XSD files for web service
问题描述
我需要创建将由其他系统中使用的Web服务(.NET)。
为了让他们实现,我需要向他们发送WSDL和XSD文件对我的web服务将使用我的web服务的逻辑。
I need to create web service (.NET) which will be used by other system. In order for them to implement logic which will use my web service, I need to send them wsdl and XSD files for my web service.
WSDL文件不是一个问题,我将通过传递WSDL从参数页面的.asmx获得它。
但我怎么能为我的Web服务的适当的XSD文件?
我可以使用xsd.exe工具,并将其传递.wsdl文件作为参数,或者是有另一种方式?
WSDL file is not a problem, I will obtain it from .asmx page by passing wsdl parameter. But how can I generate appropriate XSD files for my web service? Can I use XSD.exe tool and pass it .wsdl file as parameter, or is there another way?
先谢谢了。
推荐答案
您可以使用 disco.exe 工具,它允许您将WSDL和XSD文件保存在磁盘上,这样这些文件可以被用来生成,而无需访问WSDL的Web地址的客户端代理。
You could use the disco.exe utility which allows you to save the wsdl and xsd files on disk so that those files could be used to generate a client proxy without having access to the WSDL web address.
这篇关于如何生成Web服务的XSD文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!