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
  • 1.  XML escaping characters

    Posted Fri August 16, 2019 05:30 PM

    Hi,

    For some XML transmissions, I’m getting an error message of ‘[ISC.0042.9327] Expecting </otm:Description> got </otm:Packaging>’.

    My assumption is that some character between the otm:Description tag is causing this error. We’re already escaping the ‘less than’ symbol.

    In all of these XML transmissions, the commonality appears to be that the ‘@’ symbol is found in the string between otm:Description and /otm:Description>. Does the ‘@’ symbol need to be escaped?

    Thanks,

    Ken


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


  • 2.  RE: XML escaping characters

    Posted Fri August 16, 2019 06:54 PM

    Every XML manual I could find states that ‘@’ is not a special XML char and hence does not have to be escaped.


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


  • 3.  RE: XML escaping characters

    Posted Fri August 16, 2019 07:29 PM

    Hi fml2,

    I found the same. Nothing I’ve googled indicates that ‘@’ needs to be escaped. I’m perplexed as to why I’m seeing this error, but my assumption is that there must be some character that needs to be escaped.

    Thanks,

    Ken


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


  • 4.  RE: XML escaping characters

    Posted Fri August 16, 2019 07:48 PM

    Nobody will be able to help you without having a sample file and the transformation causing the error.


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


  • 5.  RE: XML escaping characters

    Posted Fri August 16, 2019 09:24 PM

    Can you share the flow snippet and a sample xml?

    I think you are using the service “pub.xml:documentToXMLString”, set encode, check the BIS guide.


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


  • 6.  RE: XML escaping characters

    Posted Mon August 19, 2019 01:07 PM

    Hi Mahesh,

    Yes, we are using “pub.xml:documentToXMLString”. The encode parameter is set as blank; however, I previously changed it to true and that encodes everything, including the tags, which causes failures every time, so I changed it back to blank.

    The flow service goes from “pub.xml:documentToXMLString” to “pub.xml:xmlStringToXMLNode” to “wm.tn.doc.xml:routeXML”.

    I’ve attached the section of the XML transmission that appears to be the cause of the “[ISC.0042.9327] Expecting </otm:Description> got </otm:Packaging>” error. There are multiple “otm:PackagedItemotm:Packagingotm:Description </otm:Description></otm:Packaging></otm:PackagedItem>” tags.

    Thanks,

    Ken
    ExpectingDescriptionGotPackagingXMLSnippet.txt (19.1 KB)


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


  • 7.  RE: XML escaping characters

    Posted Tue August 20, 2019 04:55 PM

    After closer review, there was a “pub.xml:documentToXMLString” service elsewhere in the flow service. Setting encode to “true” there appears to resolve the issue. Thank you.


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


  • 8.  RE: XML escaping characters

    Posted Tue August 20, 2019 09:00 PM

    Awesome! thanks for updating the thread.


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