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.  CDATA in soap request

    Posted Thu April 14, 2016 03:13 PM

    HI All,

    We have a requirement to send CDATA within a soap request something like this :

    <soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” >
    soapenv:Header/
    soapenv:Body

    <tns: xml>
    <![CDATA
    </tns: xml>

    </soapenv:Body>
    </soapenv:Envelope>

    I have created the xml that I want to pass as CDATA in above message but not sure how to create CDATA in webMethods.

    We are working on wM 9.9.

    Thanks,
    Amit


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: CDATA in soap request

    Posted Thu April 14, 2016 03:19 PM

    You can just construct a string using variable substitution or string concatenation methods in below format and pass it to soap request.

    <![CDATA[  %XML_STRING_HERE%    ]]> 

    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 3.  RE: CDATA in soap request

    Posted Fri April 15, 2016 05:55 AM

    Amit, do as Prasad suggested. Wrap the XML string in CDATA. Using CDATA means that the content should not be encoded or be treated as plain string. Update if you face any hurdles.

    Thanks,


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 4.  RE: CDATA in soap request

    Posted Fri April 15, 2016 02:37 PM

    Thanks a lot Prasad for such a easy and quick solution.

    Never thought it would be so easy to handle.

    Much appreciated. :slight_smile:

    Thanks,
    Amit


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport