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

TN processing invalid XML

  • 1.  TN processing invalid XML

    Posted Tue January 22, 2008 11:26 AM

    I noticed a strange situation while working in TN.

    Suppose, the valid XML which my partner can post is like below:-

    3412vsdabc<2fld>

    But I am noticing that, they are sending an invalid XML like below and TN is able to recongnise that document.

    3412vsdabc<2fld>
    Response -
    <?xml version="1.0"?>

    fkls

    And processing successfully.

    Even more of my shock, this XML is getting successfully validated in developer services pub.schema:validate.

    Any input please, why it is behaving so?? ANy silly mistake i m making??

    CAn you please give me some input… Thak you.


    #webMethods
    #Integration-Server-and-ESB
    #B2B-Integration


  • 2.  RE: TN processing invalid XML

    Posted Wed January 23, 2008 09:02 AM

    Well, as I have browsed through here and there on the same topic –
    I found that, when we are doing some kinda schema validation – be it in TN or Developer, as long the content within the root tags conforms to the schema – it will validate the particular incoming data irrespective of the fact that the XML data has got something more after the end of the root tag.

    While validation,the wM service will consider the rest data as other nodes n will validate successfully.

    But if you put an invalid XML after the end of the root tag – it will give u error as the rest part of the data is not a valid XML.


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB