您可以组合来自 WCF 服务的 WSDL 和 XSD 数据吗? [英] Can you combine the WSDL and XSD data from a WCF service?
问题描述
是否可以创建单个文件以从 WCF 生成的 WSDL 文件(以及也由此服务生成的任何其他 XSD 文件)生成客户端
Is it possible to create a single file to generate a client from a WCF generated WSDL file (and any additional XSD files that are also generated from this service)
我可以使用 svcutil.exe 生成一个有效的客户端,同时传递 wsdl 文件和每个 xsd 文件,但是我有一个客户正在使用 PHP 工具来生成它,我想看看我是否可以让他们轻松通过只有一个文件而不是多个文件.
I can generate a valid client using svcutil.exe passing both the wsdl file and each xsd file, but I have a customer who is using a PHP tool to generate this and I wanted to see if I could make it easy for them by having only one file instead of many.
推荐答案
是的,您可以 - 使用一些巧妙的 WCF 扩展.查看这些现成的解决方案:
Yes, you can - with some clever WCF extensions. Check out these ready-made solutions:
希望有帮助!
马克
这篇关于您可以组合来自 WCF 服务的 WSDL 和 XSD 数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!