POST cREST get entire body

Five Stars

POST cREST get entire body

Hi, 

I have a Route component with a JOB.

My route component accepts POST Request. 

My POST Request has a JSON Body with multiple elements.

 

How Can I get by body ? 

 

When I print my body there is only first element: "P_USER_LANGUAGE" : "US"

I don't need root element in my JSON.

But I Need the entire body:

 


{
"P_USER_LANGUAGE" : "US",
"P_SHIP_TO_ACCOUNT" : "14020560",
"P_SERIALNUMBER" : "81502",
"P_OPERATING_UNIT" : "794",

}

 

Please help me,

Thanks

Tags (1)

Accepted Solutions
Community Manager

Re: POST cREST get entire body

Can you show your route please? Also, do you have ....

String

.....written in the Bean class field of the REST API Mapping?

View solution in original post


All Replies
Community Manager

Re: POST cREST get entire body

Can you show your route please? Also, do you have ....

String

.....written in the Bean class field of the REST API Mapping?

View solution in original post

Five Stars

Re: POST cREST get entire body

Thanks, finally I discovered that the payload need to be String in Input, so later I can hander it.

Thanks!!

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog