One Star

[resolved] REST/JSON Web Service interrogation

Hello,
I currently have a problem when trying to call a JSON/REST Web Service (WS).
The Web Service i am trying to call requires as input a JSON entry containing 4 parameters and will give a JSON output.
The WS is consulted with the POST method.
I have try to construct a job of 4 component :
-a tFixedFlowInput : which generate a fixed set of parameters (all string type)
-a tJavarow ; which load my parameters into my context
-a tREST : which consult the Web Service
-a tlogrow to consult the output of the WS
All the component seems to work fine exept the tREST.
I have configured the tREST with the proper URL linking the the correct method. This part seems fine.
I have also configured the HTTP Header (En-têtes HTTP in French) with my 2 parameters the content type and the autorization (login and pwd). This part also seems fine.
I have also try to fill the HTTP Body (Corps HTTP in French) and this part doesn't seems fine.
When i execute the job i got in the tLogRow the output error500 which is Internal servor error.
Do you have any idea on how i can configure this job ?
Thanks you a lot for your help.
NB : The WS is running and has been tested.
NB : I have attached a screenshot of the job and one for every component parameters.
NB : I am using Talend 5.1.1
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] REST/JSON Web Service interrogation

Hi,
Il got the solution with the new tExtractJsonField of Talend 5.4.
Regards, Valentin
1 REPLY
One Star

Re: [resolved] REST/JSON Web Service interrogation

Hi,
Il got the solution with the new tExtractJsonField of Talend 5.4.
Regards, Valentin