Error in passing file path variable from java code to Talend ESBjob.

Error in passing file path variable from java code to Talend ESBjob.

hi team,
I want to send file path from java code to job in talend ESB.I created axis web service for that job.
Refer screen shot 1 for java code.I am setting context variable in java code and calling the job from code itself.
I created a context variable and assigned a java code context value to the job context variable.(Refer screen shot 2).
I used that context varibale in the tfileinputdelimited component(refer screen shot 3).
            I am having a problem while running a webservice from eclipse.Getting org.xml.sax.SAXException: Deserializing parameter 'item':  could not find deserializer for type {}ArrayOf_xsd_string.
Please help me.The way i have did is correct.Is there any other way?

Re: Error in passing file path variable from java code to Talend ESBjob.

Any update please.
One Star

Re: Error in passing file path variable from java code to Talend ESBjob.

I know it's possible to start a job using a web service, however I've never used it.. I'd rather try to pass the parameter as a proper service input, see  https://www.talendforge.org/tutorials/tutorial.php?language=English&idTuto=104
and in the flow to set the context value.  Doing so please note that the service jobs (rest or soap service) must be ran in a single transaction / context.

Have fun
  Gabriel
One Star

Re: Error in passing file path variable from java code to Talend ESBjob.

i cant understand your solution.
Please point out the mistake i done in my job and help me how can i solve this.
One Star

Re: Error in passing file path variable from java code to Talend ESBjob.

Hi,
I just suggested to use the REST or SOAP service to pass the fileName instead of directly starting a job.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read