Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/delphi/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wcf 如何将复杂类型嵌入到wsdl定义中?_Wcf_Delphi_Xsd_Wsdl - Fatal编程技术网

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

Wcf 如何将复杂类型嵌入到wsdl定义中?,wcf,delphi,xsd,wsdl,Wcf,Delphi,Xsd,Wsdl,WCF生成作为外部xsd文件的复杂类型。如何将这些定义嵌入到wsdl中?因为Delphi WSDL导入器无法导入xsd文件中的复杂类型 谢谢。WSDL有一个部分调用,您可以将其用于XML模式: <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions .... xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types>

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


谢谢。

WSDL有一个部分调用
,您可以将其用于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>

[这里您可以从外部文件导入XSD,
或者直接添加XML模式]
据我所知,至少有三个WCF扩展可以为您实现这一点:

  • (作为单独的自定义ServiceHost类实现)
马克