web stats
Source setup for calling an external API endpoint - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2019, 12:07 PM
mevnl mevnl is offline
What's HL7?
 
Join Date: Jun 2019
Posts: 3
mevnl is on a distinguished road
Default Source setup for calling an external API endpoint

Hi All,
We've recently started using Mirth Connect and we need to call an external API endpoint for the source. What source connector type should we using if we need to call an external API endpoint.
Reply With Quote
  #2  
Old 06-18-2019, 12:03 PM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 564
kirbykn2 is on a distinguished road
Default

I have used a HTTP sender destinations to connect to APIs.
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #3  
Old 06-20-2019, 11:36 AM
mevnl mevnl is offline
What's HL7?
 
Join Date: Jun 2019
Posts: 3
mevnl is on a distinguished road
Default

Thanks Kirby. I have also seen some channels use a JS Reader or a WS Listener on the Source, but the HTTP Listener would also work well.
Reply With Quote
  #4  
Old 06-20-2019, 03:29 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 802
agermano is on a distinguished road
Default

You can't use a Listener to make an outbound call. A Listener listens for inbound message.

To elaborate on Kirby's suggestion. You can use a JS Reader to set your polling schedule, then return an empty message. In a HTTP (or WS) Sender destination you construct your request, and then handle the response in the response transformer.
Reply With Quote
Reply

Tags
api, api call

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 10:38 PM.


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