How to embed complex types in wsdl definition?

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

Thanks.

+3
source share
1 answer

WSDL has a section call <wsdl:types>that 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 know will do it for you:

+4

Source: https://habr.com/ru/post/1717897/


All Articles