如何将复杂类型嵌入到wsdl定义中?

时间:2009-09-17 06:25:27

标签: wcf delphi xsd wsdl

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

谢谢。

1 个答案:

答案 0 :(得分:4)

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扩展我知道会为你做什么:

马克