web stats
Custom Webservice - Multiple Methods - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 10-31-2013, 03:02 AM
r4z0 r4z0 is offline
Mirth Newb
 
Join Date: Feb 2012
Posts: 16
r4z0 is on a distinguished road
Default Custom Webservice - Multiple Methods

Hello:
I'm implementing a Custom Webservice with 3 methods.

Mirth is generating the SOAP response correctly with the operation selected.

How can i identify the operation with is called in Mirth? I dont want to add text to the return of the webservice for the identification

Could i add a channelMap.put directly in the webservice code for identification?

Code:
    public String OP1(@WebParam(name="data")String data) {
    	return webServiceMessageReceiver.processData(data);
    }
   
    public String OP2(@WebParam(name="data")String data) {
        return webServiceMessageReceiver.processData(data);
    }
Reply With Quote
  #2  
Old 10-31-2013, 08:16 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,123
narupley is on a distinguished road
Default

That's a good idea, and would now be very easy to do in 3.0. I've added an issue for it: MIRTH-3038

In the meantime, the best way to do that is to build up XML with the actual payload and other metadata, and pass that into processData instead.
__________________
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 10-31-2013, 08:52 AM
r4z0 r4z0 is offline
Mirth Newb
 
Join Date: Feb 2012
Posts: 16
r4z0 is on a distinguished road
Default

Thanks a lot
Reply With Quote
Reply

Tags
custom, web service

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 08:55 PM.


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