Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi,
I am having this flow
The output of the tWriteJSON is as accepted by the webservice, and is working on postman:
But when I run I have the error : javax.ws.rs.WebApplicationException: HTTP 400 Bad Request
On my Webservice call to Post teh request, I am getting this error : org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public org.springframework.http.ResponseEntity
Am I missong something ?
here the input schema of the WS
The tWriteJSONField component should be setting the "string" column not the "body" column. Only XML should use the "body" column. JSON will always be sent to the "string" column.
You've broken the input schema again. Never push the previous component's schema to the tRestClient. Always take the schema from the tRestClient. Your columns are named correctly, but the types of wrong. The "string" column is correct as String. But the "body" column should be of class Document, not String. You need to supply your JSON to the string column.
When I put the body as Document I get this compilation error : canot convert from String to document in the tMap composant
row_tWriteJSONField_2_Out.body = strWriter_tWriteJSONField_2_Out.toString();
The tWriteJSONField component should be setting the "string" column not the "body" column. Only XML should use the "body" column. JSON will always be sent to the "string" column.
Finally i should the String as output Column and i removed rootNode as I dont need it. the Post in the TRestclient is done. But I wonder why i am stil getting the javax.ws.rs.WebApplicationException: HTTP 400 Bad Request.
no more errors, it is done. Thanks for @rhall for the help.
No problem. Glad you got it sorted 🙂