web stats
Deal With Http Sender Response Data - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 08-05-2015, 05:24 AM
VoiceHIT VoiceHIT is offline
What's HL7?
Join Date: Nov 2014
Posts: 1
VoiceHIT is on a distinguished road
Default Deal With Http Sender Response Data

Hi, I'm not able to deal with data retrieved from ASP.NET WEB API service.

The goal I have: retrieve multiple models from WEP API service, transform it to multiple HL7 messages (the count of messages is equal to items (models) received from WEB API) and send them to some shared place (over FileWriter).

What I have tried:
1. Prepared 'JavaScript Reader' as source connector and returns there some custom string value.
2. Prepared two destinations:
2.1. Destination 1 - HTTP Sender: method - GET, response content - XML Body, parse multipart - Yes. Then included first root node of XML into transformer outbound message template and added one of the field to channel map (from the sample attached XML I took 'GivenName').
2.2. Destination 2 - File Writer: Set transformer outbound message template just a simple HL7 v2.x data type message ('PID||||') and mapped into one of a field channel variable set in the first destination.

The workflow above doesn't work. I'm using Mirth Connect v. The sample XML file is attached below.

Any one have experienced similar issue? May someone can provide me a sample channel or resource, where I could get more detailed info about ASP.NET WEB API service calling (as a GET and as a POST - I need both).

Appreciated a lot of any discussion.
Attached Files
File Type: xml SampleWebApiResults.xml (2.1 KB, 52 views)

Last edited by VoiceHIT; 08-10-2015 at 10:24 PM.
Reply With Quote

api, connect, mirth, web

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 09:46 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation