Announcement

Collapse

Mirth Connect 4.0.1 Released!

Mirth Connect 4.0.1 is now available as an appliance update and on our GitHub page. Mirth Connect 4.0.1 is a patch release containing a bug fix which includes fixing a Jetty keystore regression that caused Connect servers using a PKCS12 keystore containing a wildcard certificate and/or a certificate with a SAN to throw an exception on startup. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

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:
    https://github.com/nextgenhealthcare...scussions/5173

    Comment

    Working...
    X