web stats
Mirth Community - View Single Post - Web Service Method and Parameters Detection in a JavaScript Transformer
View Single Post
  #1  
Old 11-19-2012, 03:57 AM
mlizana mlizana is offline
Mirth Newb
 
Join Date: Jun 2011
Location: Mataró (Barcelona)
Posts: 24
mlizana is on a distinguished road
Default Web Service Method and Parameters Detection in a JavaScript Transformer

Hi, I developed a custom web service in a Web Service Listener Connector, for instance:

Code:
public String method1(String param1, int param2);
public String method2(String param1);
And when I receive something, I create a transformer that process the message... but I have questions about it:

1) How can I know, in a javascript transformer, which method is called in the webservice? I mean, if the web service has more than 1 method, I want to detect which is the method called.

2) How can access to a concrete parameter in a web service method call that has more than 1 parameter?

Thanks in advance
Reply With Quote