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

Forteen 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

.

 

Forteen 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)

-----------

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