IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

WSDL to XSD and document

  • 1.  WSDL to XSD and document

    Posted Mon December 31, 2012 02:53 PM

    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


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: WSDL to XSD and document

    Posted Wed January 02, 2013 03:15 PM

    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


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: WSDL to XSD and document

    Posted Wed January 02, 2013 04:17 PM

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

    pub.schema:createXSD

    HTH,
    RMG


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 4.  RE: WSDL to XSD and document

    Posted Wed January 02, 2013 05:18 PM

    Thanks for reply Akshith,

    Its an inline schema and I am using 7.1.2 version.

    -Pawan


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: WSDL to XSD and document

    Posted Wed January 02, 2013 06:52 PM

    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>


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: WSDL to XSD and document

    Posted Wed January 02, 2013 08:00 PM

    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.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 7.  RE: WSDL to XSD and document

    Posted Wed January 02, 2013 08:37 PM

    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


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 8.  RE: WSDL to XSD and document

    Posted Thu December 26, 2013 05:37 AM

    Hi all,

    please let me know How can i create response xsd?


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 9.  RE: WSDL to XSD and document

    Posted Thu December 26, 2013 03:44 PM

    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?


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods