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=“http://www.w3.org/2001/XMLSchema” targetNamespace=“http://b2bi.xyz.com/wsdl/MaintenanceServices/v13_0” xmlns:tns=“http://b2bi.xyz.com/wsdl/MaintenanceServices/v13_0” xmlns:mh=“http://b2b.xyz.com/schema/MsgHeader/v1_0” xmlns:ms=“http://b2b.xyz.com/schema/MaintenanceServices/v13_0”>
<xsd:import namespace=“http://b2b.xyz.com/schema/MsgHeader/v1_0” schemaLocation=“mh.xsd”/>
<xsd:import namespace=“http://b2b.xyz.com/schema/MaintenanceServices/v13_0” 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?