We have an endpoint that returns binary response when called directly, please find the screen shot of the response returned by the endpoint when called directly for your reference. When this service is called thru APIGW, the ${response.mainpart} is empty, however, printing the following response variable in the audit, I do see some object reference in
response.parts.1 as shown:
response.parts.1=
com.l7tech.common.mime.k@3e69d52bresponse.parts.1.message=
response.parts.1.body=
response.parts.1.contentType= application/octet-stream
response.parts.1.size= 40906
Question:1. How to get response from an endpoint that returns binary value?
2. How to extract the object value from
com.l7tech.common.mime.k@3e69d52b (this was returned by response.parts.1 variable
)Any inputs on how to resolve the same would be greatly appreciated.
THanks
Muthu