web stats
Mirth Community - View Single Post - Get Token from destination response and pass to new Channel in Mirth
View Single Post
  #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