web stats
Web Service Listener (I want to see the data) - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-08-2015, 08:47 AM
spycom spycom is offline
OBX.2 Kenobi
 
Join Date: Jun 2014
Posts: 71
spycom is on a distinguished road
Default Web Service Listener (I want to see the data)

Hello,
I have a Web Service Listener connector using a custom web service. It all works, but I need to be able to use the data in either the Source or Destination transformers.
Are there additional steps needed to make the message accessible to the Transformers?

Thanks
Reply With Quote
  #2  
Old 01-08-2015, 09:01 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,235
cory_cole is on a distinguished road
Default

It should be available on both.
Reply With Quote
  #3  
Old 01-08-2015, 09:05 AM
spycom spycom is offline
OBX.2 Kenobi
 
Join Date: Jun 2014
Posts: 71
spycom is on a distinguished road
Default

Quote:
Originally Posted by cory_cole View Post
It should be available on both.
You'd think. But when I send something to the listener, nothing shows in the counts, even tried doing a logger.error(connectorMessage.getRawData()); just to see what the request looks like... but nothing ever shows up.
But I do get a response on the sender... so I know it works
Reply With Quote
  #4  
Old 01-08-2015, 09:07 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,235
cory_cole is on a distinguished road
Default

There is something else wrong. You will need to post your channel for somebody to debug.
Reply With Quote
  #5  
Old 01-08-2015, 09:12 AM
spycom spycom is offline
OBX.2 Kenobi
 
Join Date: Jun 2014
Posts: 71
spycom is on a distinguished road
Default

Quote:
Originally Posted by cory_cole View Post
There is something else wrong. You will need to post your channel for somebody to debug.
Here is the extent of the web service code:
Code:
package com.sonic.mirth.connect.ws;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import com.mirth.connect.connectors.ws.AcceptMessage;
import com.mirth.connect.connectors.ws.WebServiceReceiver;


/**
 *
 * @author Tim Womack
 * @version .01
 */
@WebService
public class PatientOrders extends AcceptMessage {
    public PatientOrders(WebServiceReceiver webServiceReceiver) {
        super(webServiceReceiver);
    }
    
    @WebMethod(action = "Hello")
    public String hello(@WebParam(name = "your_name") String param) {
        String hi = "Well, hello there, " + param;
        return hi;
    }
}
Like I said, I get a response. So it is definitely working.
The code for the channel is all default, no changes made to it... other than being a web service listener.
Reply With Quote
Reply

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 03:50 AM.


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