web stats
Call a rest web service as destination ? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 12-28-2018, 06:42 AM
mbourassa1 mbourassa1 is offline
What's HL7?
 
Join Date: Dec 2018
Posts: 1
mbourassa1 is on a distinguished road
Unhappy Call a rest web service as destination ?

Hi,

I'm using Mith Connect 3.3.

I can use a http sender connector to call a rest web service but I want to add/remove a block from the content dynamically depend on data I receive.

Is it possible to call a rest web service with a javascript writer connector and use jquery or anything else ?

Thank you
Reply With Quote
  #2  
Old 12-31-2018, 10:18 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 999
agermano is on a distinguished road
Default

You can call a rest service from a Javascript Writer, but you must use Java classes for your HTTP client.

You can process the data received from the HTTP Sender in the Response Transformer for that destination, which may meet your needs.
Reply With Quote
  #3  
Old 12-31-2018, 09:17 PM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 835
siddharth is on a distinguished road
Default

I don't think support for jquery is there in mirth, but as agermano said, you can use java.net library and its methods to consume an API in a js writer.
__________________
HL7v2.7 Certified Control Specialist!
Reply With Quote
Reply

Tags
jquery, mirth connect 3.0, restful ws 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 12:17 PM.


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