Hi Experts,
I’m trying to make a simple rest api call to an authentication endpoint and retrieve token information. Initially I tried this with the JsonOutboundConnector, which retrieves the response as following,
As you can see the response is in json. I couldn’t successfully capture this response and extract only the access token for use in subsequent calls. This issue was raised here
Since then I got in contact with the resource owners and got them to send the response in xml, which would make it possible for me to use the XmlOutboundConnector and extract the access token. This works fine in postman,
The only thing I had to do additionally was to add the following header, Accept = application/xml (without this header it returns json)
Although, when I try the same in FSM I still end up getting the response in json
It’s as if the Accept header is not considered at all? or am I missing something else?
Any help is greatly appreciated.