web stats
custom web service issue on 3.0.3 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 09-30-2014, 12:29 PM
anand14 anand14 is offline
OBX.2 Kenobi
 
Join Date: Dec 2006
Posts: 54
anand14
Default custom web service issue on 3.0.3

All,

This is the first time I am working with inbound web services. I am trying to implement a web service listener on Mirth Connect 3.0.3 on a V1000 appliance. I extended the Mirth Connect's basic AcceptMessage class and created the CustomAcceptMessage Class.

The inbound SOAP envelope has the data in base-64. The custom jar (included in this thread) is able to decode the base-64 and display the HL7 message but I am not able to route the response to the Destination channel.



PROVIDER using SOAP --> crisp_test_ws --> Destination channel

EDIT:
Using SOAP UI and querying the WSDL URL works and I am able to see the decoded message. But on the mirth channel, the SOAP envelope seen at the source and destination are the same (i.e no transformations are seen). On the Mirth channel, I would like the decoded SOAP message to be transmitted to the Destination Connector but I am unable to do so.


I am including a MS word document (CustomWebService_Sep30.doc) that has more detail on what I am seeing.



Any pointers would be appreciated. Thanks
Attached Files
File Type: jar CustomAcceptMessage.jar (5.6 KB, 90 views)
File Type: xml crisp_test_ws.xml (18.1 KB, 41 views)
File Type: doc CustomWebService_Sep30.doc (239.0 KB, 86 views)

Last edited by anand14; 09-30-2014 at 05:41 PM.
Reply With Quote
  #2  
Old 10-02-2014, 05:36 AM
anand14 anand14 is offline
OBX.2 Kenobi
 
Join Date: Dec 2006
Posts: 54
anand14
Default

Never mind this post. I figured it out.

If the admins would like to delete this thread, please do so.
Reply With Quote
  #3  
Old 03-10-2015, 03:07 AM
leecambl leecambl is offline
Mirth Newb
 
Join Date: Oct 2014
Location: Manchester, UK
Posts: 20
leecambl is on a distinguished road
Default

Are you saying that you managed to route the message from a custom web service listener to a destination channel? If so, how did you do this? Do you have any tips?
Reply With Quote
  #4  
Old 03-10-2015, 06:15 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 284
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default Error on jar

Got an error on the jar:

Code:
ERROR (com.mirth.connect.connectors.ws.WebServiceReceiver:132): Custom web service class initialization failed
java.lang.ClassNotFoundException: com.mirth.connect.connectors.ws.CustomAcceptMessage
__________________
X Connections
https://documentor.email
https://www.x-connections.com
Reply With Quote
  #5  
Old 03-10-2015, 07:23 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,111
narupley is on a distinguished road
Default

Quote:
Originally Posted by mdehoog View Post
Got an error on the jar:

Code:
ERROR (com.mirth.connect.connectors.ws.WebServiceReceiver:132): Custom web service class initialization failed
java.lang.ClassNotFoundException: com.mirth.connect.connectors.ws.CustomAcceptMessage
That indicates you're not including your custom JAR correctly. Assuming you're working with the latest version (3.2), add your JAR as a resource in the Settings -> Resources view. Then on the channel Summary tab, hit Set Libraries, and check your resource for your source connector. Then redeploy the channel and your custom library should be used.

Also FYI, to dispatch a message to a channel from a custom web service, just call one of the processData methods on the WebServiceReceiver object. You can use the one that takes a RawMessage object, then pass in the destination metadata IDs to dispatch only to particular destinations.
__________________
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
  #6  
Old 04-01-2015, 09:21 AM
anand14 anand14 is offline
OBX.2 Kenobi
 
Join Date: Dec 2006
Posts: 54
anand14
Default

Quote:
Originally Posted by leecambl View Post
Are you saying that you managed to route the message from a custom web service listener to a destination channel? If so, how did you do this? Do you have any tips?
Yes, once you have the custom web service listener configured, it behaves as any other source connector. You have the ability to set the destination on your "channel" settings in the "Destinations" tab.

In order to test my webservice, I used SOAP UI and was able to simulate a sender to that particular port on which the webservice was hosted.
Reply With Quote
Reply

Tags
jar, java, webservice

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:35 PM.


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