I'm using Talend Open Sudio for ESB 7.1.1 (free version) and have a simple route: cRest --> cProcessor.
My cRest has "Consumes" and "Produces" set to "JSON".
My cProcessor prints the "in" part of the exchange to the console: System.out.println("in body = '" + exchange.getIn().getBody(String.class) + "'");
When I send a JSON POST request to the cRest without a root node, eg:
I get the following truncated output on the console: in body = '<mid>18125</mid>'. How do I get the rest of the JSON request, ie. <portalid>2013194</portalid> ?
I need all the values in the exchange in body for further processing.
If I send a JSON POST request with a root node, I do get all values from the request (in body = '<root><mid>18125</mid><portalid>2013194</portalid></root>'),
BUT: I can't change the client making the JSON Post, so I'm stuck.
In the Code view for the Route it shows
In the Route POM it shows
According to this post, it should just work out of the box:
How can i make this work ?
Your help is greatly appreciated.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Learn how to use an API-First Approach to Modernize your Applications
Take a look at this technical overview video of Talend API Designer
Find out how to get started with APIs