No announcement yet.

[MC 3.0] HTTP Listener --> HTML response

  • Filter
  • Time
  • Show
Clear All
new posts

  • [MC 3.0] HTTP Listener --> HTML response


    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 ?

  • #2
    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:

    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.


    • #3
      Thanks a lot,

      it did the trick