Announcement

Collapse

Mirth Connect 4.1.0 Released!

Mirth Connect 4.1.0 is now available as an appliance update and on our GitHub page. Mirth Connect 4.1.0 includes new features such as new event log messages, additional fields to the Welcome to Mirth Connect screen, new information included in alerts as well as many smaller changes, updates, and improvements. This release also contains several improvements to commercial extensions. 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

Passing XML Data Through HTTP

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

  • Passing XML Data Through HTTP

    I am implementing a simple demonstration scenario where I need to accept an HTTP post request that contains two parameters, one is an action and the other is an XML payload. I need to parse the XML payload to extract a few fields, which are persisted in a database, and then pass the message along to an external HTTP server, which is expecting the message in the original format including the hidden parameters. The response from the external service is then returned to the client.

    My questions are;

    - How do I pass an HTTP post request along to the HTTP Sender without altering the content? I believe what I want to do is to simply pass along the raw data, but the interface forces me to set it to a property so it is put on the wire as property=<raw data>.
    - How can I extract and work with the http post hidden parameters?
    - How can I parse XML to extract a subset of the elements contained in the original document? Xpath comes to mind. As a follow up, how would those be sent to the database writer?

    Thanks.
Working...
X