web stats
Get Token from destination response and pass to new Channel in Mirth - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-12-2016, 11:42 PM
user1411 user1411 is offline
What's HL7?
 
Join Date: Oct 2016
Posts: 2
user1411 is on a distinguished road
Question Get Token from destination response and pass to new Channel in Mirth

I've created a channel in Mirth which first calls authentication service and returns response. Source I've configured to HTTP Listener and in destination I've used HTTP Sender which calls a rest service for login and returns token as below.

{"token":"5912aa99-af21-5614-c232-d22be9e5c102","app":"TEST API Suite","expires":845,"userID":"ZCT06D123Cfk20oROB9 x-bEXeY12oQGfack6dMMc-0o="}

Question: From the response that I'm receiving from rest service , how do I extract the token part and then pass that token to another channel and use it for calling another service.

Please Help. I'm a Newbie in Mirth. Thanks.
Reply With Quote
 

Tags
json, mirth 3.4.2, webservice

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:24 AM.


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