[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.

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

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

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