【问题标题】:How can I embed complex types into wsdl definition?如何将复杂类型嵌入到 wsdl 定义中?
【发布时间】:2009-09-17 06:25:27
【问题描述】:

WCF 将复杂类型生成为外部 xsd 文件。如何将这些定义嵌入 wsdl?因为 Delphi WSDL 导入器无法导入 xsd 文件中的复杂类型。

谢谢。

【问题讨论】:

    标签: wcf delphi xsd wsdl


    【解决方案1】:

    WSDL 有一个部分调用 <wsdl:types>,您可以将其用于您的 XML 架构:

    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions 
        ....
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
        <wsdl:types>
        <xsd:schema targetNamespace="......">
               [here you can either import an XSD from a external file,
                or add your XML schema directly]
        </xsd:schema>
    </wsdl:types>
    

    据我所知,至少有三个 WCF 扩展可以为您做到这一点:

    马克

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-21
      • 2013-10-27
      • 2011-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多