web stats
Custom Webservice - Multiple Methods - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
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

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?

    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
Old 10-31-2013, 08:16 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road

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
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

Thanks a lot
Reply With Quote

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 06:32 AM.

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