Recently come across a service that response a media type text/html when error.
We have a rest proxy and a rest business proxy, what we came across was the response come as binary when check in the pipeline and we are still finding a proper way to encode the binary become a string content in an XML element.
Also some research shows a workaround,
using a java call out
service call out a proxy that receive binary and response text.
I would like to know is there a better way that OSB platform itself have the way or function to be used.