web stats
Custom response in Webservice Listener - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-04-2013, 04:45 AM
mgorrizm mgorrizm is offline
What's HL7?
 
Join Date: Jun 2012
Posts: 2
mgorrizm is on a distinguished road
Question Custom response in Webservice Listener

Hi,
How can I change the SOAP envelope in the webservice listener response?

I send something like that <return>hello world<return> and I need to replace return by <MesOut>hello world</MesOut>.

I tried to put the code u can see below, in a java class that extends acceptMessage, but didn't make nothing.

@WebMethod(operationName = "S044")
public String S044(@WebParam(mode=Mode.IN,name="MesIn",targetNam espace="http://MGM.Servicios/") String messageIn,@WebParam(mode=Mode.OUT,name="MesOut",targetNamesp ace="http://MGM.Servicios/") Holder<String> messageOut) {
return webServiceMessageReceiver.processData(messageIn.to String());
}

I know the class is included correctly because the parameter MesIn work OK.

Also I want to know how I can recieve a XML that's not send as a String.(The webservice only recieve a null)

Thanks for the help.
Reply With Quote
 

Tags
soap, web service, web service listener, xml

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 09:58 PM.


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