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

Creating a document Type using a XSD

  • 1.  Creating a document Type using a XSD

    Posted Wed July 13, 2005 01:56 PM

    i was able to create a document using a XML schema file. The fields in the documents are created with default prefix ns:

    I need to generate a XML strimg using this document. How do i get rid of this defalut prefixes?


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 2.  RE: Creating a document Type using a XSD

    Posted Wed July 27, 2005 01:48 PM

    I would change the xml to a string and then use pub.string:replace to get rid of
    any prefixes. For performance, I would put the pub.string:replace in a transformer.
    If you are validating an inbound XML document with the schema, you’ll likely need the prefixes to get the “valid” response.


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Creating a document Type using a XSD

    Posted Wed January 09, 2008 11:36 PM


  • 4.  RE: Creating a document Type using a XSD

    Posted Thu January 24, 2008 10:09 AM

    Hi,

    please check the XSD for the attribute elementForm in the XSD-Header <xsd:schema …=“”>

    When it specifies “qualified” you will get the docType as described.
    When elementForm is omitted or set to “unqualified”, only the top level element contains the prefix.

    But this prefix is required if the xml is used as part of a SOAP message.

    Regards,
    Holger</xsd:schema>


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB