posted 15 years ago
Hi!
It is very simple to just cut and copy the XML schema from the <wsdl:types> element, since the contents of this element is an XML schema. Having extracted the XML schema to a separate file, you just add an <xsd:schema> element containing an <xsd:import> element in the <wsdl:types> element.
Example:
The following XML schema was extracted from a WSDL. The first line specifying the XML version and encoding was added by hand.
The schema was saved to a file named CalculatorService_schema1.xsd located in the same directory as the WSDL.
The <type> element in the WSDL document looks like this, after the extraction of the XML schema:
Best wishes!