patch method with tRestClient

Five Stars

patch method with tRestClient

Hello,

 

i have a problem with a job. 

My job is tu patch a document with new values using rest webservices using cUrl ans patch method.

I test with postman and I have no problem

 

Capture.JPG

But when I use the tRestClient and the patch method, it doesn't work

 

Capture.JPGCapture.JPG

 

Do you have a idea? I'm using Talend 6.2.1 

 

Thanks for your answers.

 

Regards

Thirteen Stars

Re: patch method with tRestClient

Your queries in Postman and in Talend is different:

  • in Postman you send Body (XML or JSON)
  • in Talend you send query parameters, which is absolutely not hte same

 

You need prepare request Body and send it to endpoint
as example:

https://community.talend.com/t5/Design-and-Development/POST-HTTP-request-with-XML-body/m-p/141974/hi...

-----------
Five Stars

Re: patch method with tRestClient

Thanks for your answer.

 

But I've done an old job using post method and this job works (see screenshot below) So I don't understand why it doesn't work with Patch method. Is it possible that is a bug of the tRest Component? 

 

Capture.JPGCapture.JPG

.

 

Thirteen Stars

Re: patch method with tRestClient

in this case - double check number of parameters - from the cropped picture it not clean is it same or not (no doubt order different, but not clean all there or not)

-----------

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.