webMethods

webMethods

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

CDATA handling in pub.string:bytesToString

  • 1.  CDATA handling in pub.string:bytesToString

    Posted Mon September 03, 2018 06:55 AM

    Hi,

    I am receving below response format from http call.

    abc xyz nbvf njhgf ]]

    i.e Message tag in turn having an xml in CADATA.

    When I convert response body to string using ‘pub.string:bytesToString’, data in tag is partially encoded(screenshot attached).

    However, in SOAPUI I get proper response and in correct format with CDATA in.

    My requirement is to get same response format i.e document should be converted into string without encoding in webMethods for tracking purpose. Not sure if I am missing some point here. Why such strange encoding is happening or is it something like webMethods handles CDATA this way. Is there any solution for this?

    Regards
    Gaurav


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