web stats
[MC 3.0] HTTP Listener --> HTML response - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 11-20-2013, 06:47 AM
lionelroux lionelroux is offline
OBX.2 Kenobi
 
Join Date: Apr 2013
Posts: 82
lionelroux is on a distinguished road
Exclamation [MC 3.0] HTTP Listener --> HTML response

Hello,

i've a channel whose consist in an HTTP listener and a javascript destination.
In the listener, I've a transformer step that queries the mirth database, then extracts some messages content and that routes messages to another channel.
it's a kind of reprocessing channel accessible via an HTML interface for end-users.
I've set response to "Destination1" which is the name of my destination, and content type to text/html.

The first steps work perfectly as expected.
But I'm unable to get a response from Mirth, with HTML content if possible.

How can I get such a response ?
Do i need to process it in the source or in the destination ?
Reply With Quote
  #2  
Old 11-20-2013, 08:51 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,097
narupley is on a distinguished road
Default

If you respond from a destination, that destination actually needs to receive a response. In 3.0 the way you get a JavaScript Writer to receive a response is simply by returning one:

Code:
return 'some response';
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 11-22-2013, 12:44 AM
lionelroux lionelroux is offline
OBX.2 Kenobi
 
Join Date: Apr 2013
Posts: 82
lionelroux is on a distinguished road
Default

Thanks a lot,

it did the trick
Reply With Quote
Reply

Tags
html, http

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 09:53 PM.


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