Announcement

Collapse
No announcement yet.

How to use custom web service input vars in transformers?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to use custom web service input vars in transformers?

    Custom Web Service Listener
    Mirth Connect 3.1
    Windows 8.1
    Java 8

    Using Eclipse I've created a custom web service listener which contains two actions. One action just accepts two variables.

    HTML Code:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservice.custom.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <web:add>
             <i>?</i>
             <j>?</j>
          </web:add>
       </soapenv:Body>
    </soapenv:Envelope>
    How can I use these vars in my transformers? Or even the complete incomming message?

    Or is this not possible?

    Thanks for the input.
    Matthy
    Last edited by mdehoog; 11-03-2014, 03:40 AM.
    X Connections
    https://documentor.email
    https://www.x-connections.com

  • #2
    It looks like the SOAP request isnt entring the channel at all.
    Even a logger.info in the preprosessor isnt triggered.
    X Connections
    https://documentor.email
    https://www.x-connections.com

    Comment


    • #3
      If you want to dispatch a message, call the processData function. In 3.1 it can take in either a string or a RawMessage object, so you can simply add those values as source map variables if you want.
      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.

      Comment


      • #4
        I added
        String response = webServiceReceiver.processData(param);

        to my code but ...

        Any suggestion how to implement your suggestion (raw message)?
        For me"simply" is still "complex"
        X Connections
        https://documentor.email
        https://www.x-connections.com

        Comment


        • #5
          Originally posted by mdehoog View Post
          I added
          String response = webServiceReceiver.processData(param);

          to my code but ...

          Any suggestion how to implement your suggestion (raw message)?
          For me"simply" is still "complex"
          There's another version of the method that takes in a RawMessage object. Look at the User API for information on how to construct one.
          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.

          Comment


          • #6
            I take the challenge.
            X Connections
            https://documentor.email
            https://www.x-connections.com

            Comment

            Working...
            X