WSDL to XSD and document

Hi Team,

I have a WSDL file, upon importing this WSDL as provider. I get the provider descriptor, services and documents. I issue here is that the documents contains namespaces.

I want to create a publishable document without namespace. Could you please advice on this?

As per my understanding a publishable document cannot contain namespace. correct me if I am wrong.
Also if i need to extract XSD from WSDL. Please suggest the steps for the same.

Thanks in advance.
-Pawan

I believe you are right on the assumption that a publishable document cannot contain namespace I think i had the same issue in 7.0 long ago.

As for the need to extract XSD from WSDL, is it an inline schema or is it a URI reference in WSDL?

Cheers,
Akshith

For extracting/creating XSD have you tried using this public service?

pub.schema:createXSD

HTH,
RMG

Thanks for reply Akshith,

Its an inline schema and I am using 7.1.2 version.

-Pawan

Thanks for reply RMG, after using pub.schema:createXSD service I am getting getting three schemas, since three namespaces are used in the input document.

Here is the first xsd, please advice the change.

<?xml version="1.0" encoding="UTF-8" ?>

<xsd:schema xmlns:xsd=“XML Schema” targetNamespace=“.xyz Domain Names | Join Generation XYZ” xmlns:tns=“.xyz Domain Names | Join Generation XYZ” xmlns:mh=“.xyz Domain Names | Join Generation XYZ” xmlns:ms=“.xyz Domain Names | Join Generation XYZ”>
<xsd:import namespace=“.xyz Domain Names | Join Generation XYZ” schemaLocation=“mh.xsd”/>
<xsd:import namespace=“.xyz Domain Names | Join Generation XYZ” schemaLocation=“ms.xsd”/>
<xsd:element name=“TicketUpdateSync”>
xsd:complexType
xsd:sequence
<xsd:element ref=“mh:MessageHeader”/>
<xsd:element ref=“ms:TicketUpdate”/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

Don’t use the resulting document type (created from the XSD within the WSDL) as the publishable document type. Instead, define a publishable document type of your own. Then in your services that use those doc types to manipulate documents, map to/from the document defined by the WSDL.

The createXSD service will just take you full circle, creating an XSD that is the same as the one you imported from the WSDL. That won’t help you.

Death to namespaces. They get in the way far more often than they help.

I just framed createXSD and don’t use WSDL reference it does gets namespace ofcourse …so Instead define a publishable custom document type based on your Mapping specifications as Rob mentioned above:

HTH,
RMG

Hi all,

please let me know How can i create response xsd?

Do you know what are the fields required in the Response document before you try to create XSD?

Did you try to use createXSD service?