Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mirth Connect : How to create channel to make HTTP request once in a day

Requirement is that we need to download some certificates everyday. For this we have RESTfull endpoint in our application and when manually sent request to RESTfull endpoint, then certificates are downloaded to our application folder.

Now I am looking to automate it by creating channel in Mirth, which will make HTTP request the RESTfull endpoint every day.

In Mirth channel, destination is set to HTTP sender and other configuration are done.

But I am not getting about configurations needs to be done for Source.

Could any one please suggest what should be the source considering the requirement??

Thanks in advance..

like image 980
Sameer K Avatar asked Dec 08 '25 13:12

Sameer K


1 Answers

That's easy to do. Just use a JavaScript Reader to return a dummy message. Literally just something like this would work:

return 'dummy';

The scheduling options available allow you to poll on a certain time interval, poll once a day at a specific time, or even specify a cron expression. Advanced options are also available that allow you to choose which days of the week/month to poll on.

Once you've made your request with the HTTP Sender, I imagine you're going to want to do something with the response. You can use the response from that destination in a subsequent destination. For example, you could use a Database Writer to grab values coming from the HTTP response and insert into a table. Or, you could use a Channel Writer to forward the response on to a completely different channel.

like image 107
Nick Rupley Avatar answered Dec 12 '25 05:12

Nick Rupley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!