From ESB our api is making a call to the downstream service which in case of negative scenario is returning
`<html>
<head>
<meta content="HTML Tidy for Java (vers. 27 Sep 2004), see www.w3.org" name="generator"/>
<title/>
</head>
<body>invalid address type</body>
</html>`
but when we log inside esb we see this
QUIgaXMgaW52YWxpZCBhZGRyZXNzIHR5cGU=
Also when the message is send to the caller using respond , the caller gets HTMl again.
We had enabled the following in axis2
`<messageBuilder contentType="text/html"
class="org.wso2.carbon.relay.BinaryRelayBuilder"/> `
We want to transform the response into JSON and want to map body in the response before sending to the caller .