Requirement is to consume a webservice and persist in database.
I wrote a stand alone class with Resttemplate
and it works.
I used same url and same authentication mechanism + spring boot, war deployed on tomcat then when I hit the endpoint(which calls the webservice to get json output) it throws exception.
There was an unexpected error (type=Bad Request, status=400).
JSON parse error: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: java.io.PushbackInputStream@4be06322; line: 1, column: 2]
Can someone please assist.
Thanks.