One Star

How to call Talend Web Service functions from java web application

I have created few Talend Data Integration jobs and also have managed to extract them as web service and deployed the same under Apache Tomcat server successfully.

Now i have to call these web service from my Java Web Application so can you please let me know how to do that ?
1) Will have have to add some talend jar files in class path/lib folder in order to call web service?
2) how to call webservice from java code?
It would be great if you can provide an example or step by step to do the above things
Thanks in advace
3 REPLIES
One Star

Re: How to call Talend Web Service functions from java web application

Hi,
Have you exported your job as a "Webservice" (war file)?
Here is a URL construction how you can call a job on your webserver:
http://<SERVER_NAME>:<PORT>/<WEBAPP_NAME>/services/<JOB_NAME>?method=runJob

Additionally you can provide context parameters in the following way:
&arg1=--context_param%20<PARAM_NAME>=<PARAM_VALUE>

do this for all your params you need, but pay attention that you must increment the argument (e.g.: &arg1=....&arg2=...)
Hope this helps!
BR
Stefan
One Star

Re: How to call Talend Web Service functions from java web application

Yes i have exported as .war file and deployed the same in tomcat. I know how to call web service from browser.
>> I want to know how to call web service from java code?
>> In order to call web service from java code will i have to put some talend specific jar files in class path or lib folder?
>> Is there any document to illustrate talend web service calling from java?

thanks
One Star

Re: How to call Talend Web Service functions from java web application