tags:

views:

533

answers:

1

Hi,

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.

+3  A: 

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/"&gt;
    <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

marc_s
thank you for the links.
frameworkninja