Announcement

Collapse
No announcement yet.

Remove CDATA wrap in web service listener response

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remove CDATA wrap in web service listener response

    Hi,

    I have a web service listener channel in which I want to return an XML.
    I take the response from one channel destination
    Mirth automatically wraps the response inside CDATA like this

    Code:
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP-ENV:Header/>
       <S:Body xmlns:ns2="http://ws.connectors.connect.mirth.com/">
          <ns2:acceptMessageResponse>
             <return><![CDATA[<xml><nhc>12345</nhc><nom>XXXX</nom><cognom1>XXXXXX</cognom1><cognom2>XXXXX</cognom2><dnaix>2018-10-15</dnaix></xml>]]></return>
          </ns2:acceptMessageResponse>
       </S:Body>
    </S:Envelope>
    I want show direct XML inside <return> tag.

    How I can remove this CDATA wrap?

    Thanks,
    carles

  • #2
    Answer in Github:

    Comment

    Working...
    X