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