The issue is the backend broker response contains some Spanish character which fails in datapower if response type is selected as SOAP orXML. We changed the CodedCharSetId in broker from 819 to 1208 to prevent the processing exception in broker which went well as planned.
When response type on DP is selected as non XML the header of broker response message can be seen in DP probe.
broker is sending the soap response message with <Encoding>546</Encoding><CodedCharSetId>1208</CodedCharSetId>
but datapower receives and replaces it with <Encoding>546</Encoding><CodedCharSetId>819</CodedCharSetId>.
With XML /SOAP response type on ws-proxy the message fails in DP on response rule.The error message we are getting in DP is;
illegal character 'N' at offset 1148 of WS-Proxy
Example of spanish character from response message;
I have followed the technote;
http://www-01.ibm.com/support/docview.wss?uid=swg21409699 and tried the below code in response but got the same failure results;