【发布时间】:2014-11-01 17:31:00
【问题描述】:
我有一个 Wcf 服务,方法很简单。我需要生成 WSDL 和 XSD 文件,以移交给需要使用 Web 服务的第三方。
解决方案是在 Visual Studio 2013、.NET 4.5 中完成的。从 BIN 文件夹中,我运行 SVCUTIL /t:metadata {name of dll file}。不久之后,我现在同时拥有了一个 WSDL 和一个 XSD 文件。 WSDL 文件包含:
[SAPI XML] tempuri.org.wsdl(2): unknown tag <wsdl:definitions>.
[SAPI XML] Compulation Failed!
[W3C XML tempuri.org.wsdl(2) : The name of the root element in the grammar must be "grammar", not "definition".
[W3C XML] Compilation Failed!
XSD 文件的输出几乎相同。
有什么想法吗?
谢谢 弗兰克
【问题讨论】:
标签: wcf xsd wsdl svcutil.exe