[resolved] tRESTClient PUT command not working

One Star

[resolved] tRESTClient PUT command not working

I am unable to use PUT method but GET,POST and DELETE working.
and i tried to use tREST component on same job for PUT Method keep getting error "The method getHeader() is undefined for the type"
Method : PUT not working on Talend 5.5 version 
log :
Checking ports...
Sending job 'json' to server (10.0.192.456:8001)...
File transfer completed.
Deploying job 'json' on server (10.0.192.456:8000)...
Running job 'json'...
Starting job json at 14:16 19/08/2015.
connecting to socket on port 3796
connected
Aug 19, 2015 2:16:46 PM org.apache.cxf.interceptor.LoggingOutInterceptor
INFO: Outbound Message
---------------------------
ID: 1
Address: https://sandbox.orgsync.com/api/v2/accounts/5919820?key=GnclPpv1uGnc3bRslJO6V99zqj5kxK5g7W4vgczsh0r&...
Http-Method: PUT
Content-Type: application/json
Headers: {Content-Type=, Accept=, X-OrgSync-API-Key=}
--------------------------------------
Aug 19, 2015 2:16:46 PM org.apache.cxf.interceptor.LoggingInInterceptor
INFO: Inbound Message
----------------------------
ID: 1
Response-Code: 411
Encoding: ISO-8859-1
Content-Type: text/html
Headers: {connection=, Content-Length=, content-type=, Date=, Server=}
Payload: <html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx/0.8.54</center>
</body>
</html>
--------------------------------------
411|<html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx/0.8.54</center>
</body>
</html>

Accepted Solutions
One Star

Re: [resolved] tRESTClient PUT command not working

Thanks for the feedback.made changes to input payload then PUT method is working with status 200 OK.

All Replies
One Star

Re: [resolved] tRESTClient PUT command not working

Hi,
You send a message without payload - but regarding the response its required
One Star

Re: [resolved] tRESTClient PUT command not working

Thanks for the feedback.made changes to input payload then PUT method is working with status 200 OK.

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up now

Definitive Guide to Data Quality

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

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads