3

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.

mokaymakci
  • 1,373
  • 1
  • 18
  • 30

1 Answers1

4

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

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459