Five Stars

Get URL parameter in a ESB job

Good Morning,
I have created a job for a webservice (as can be seen in the screenshot attached ) and I need now to get a new parameter from the URL the webservice is called...
For example :  
http://xxx.xxx.xxx.xxx:xxxx/mywebservice/myparameter/myvalue

Do you know how can I get this url parameter ?

Note that I have already tested with success a design with the parameter inside the HTTP header with the following code :
((java.util.Map<String,java.util.List<String>>)globalMap.get("tESBProviderRequest_1_HEADERS_HTTP")).get("SRV_ID").get(0)

, but it's not the target.

Thank you,
Jacky Siveton.
PS : I've reposted this topic from https://www.talendforge.org/forum/viewtopic.php?pid=196100#p196100  to see if it's better found & answered here
3 REPLIES
Five Stars

Re: Get URL parameter in a ESB job

Does anyone have any clue ?
Employee

Re: Get URL parameter in a ESB job

Hi,
Looks like the requirement what you want is a typical RESTful service, could you try with the tRESTRequest/tRESTResponse components in the job? the tESBProviderRequest/tESBProviderResponse are designed for SOAP service. with REST service, you are able to specify path parameter and request parameter, and support XML and JSON data type as input/output.
Regards.
Five Stars

Re: Get URL parameter in a ESB job

Hi,
Actually we've got a SOAP service here.
Is it a way to get the URL parameters ?
Thank You.