本文介绍了如何将复杂类型嵌入到wsdl定义中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



谢谢。

解决方案

WSDL有一个调用< wsdl:types> 可以用于您的XML模式:

 <?xml version =1.0encoding =utf-8?> 
< wsdl:definitions
....
xmlns:wsdl =http://schemas.xmlsoap.org/wsdl/>
< wsdl:types>
< xsd:schema targetNamespace =......>
[这里您可以从外部文件导入XSD
或直接添加您的XML模式]
< / xsd:schema>
< / wsdl:types>

至少有三个WCF扩展,我知道哪个将为您做到这一点: / p>



  • (实现为一个单独的,定制的ServiceHost类)




Marc


WCF generates complex types as external xsd files. How can I embed these definitions into wsdl? Because Delphi WSDL importer cannot import the complex types in the xsd files.

Thank you.

解决方案

WSDL has a section call <wsdl:types> which you can use for your XML schema:

<?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>

There are at least three WCF extensions that I'm aware of which will do that for you:

Marc

这篇关于如何将复杂类型嵌入到wsdl定义中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 05:40