I have a soap to rest api and default xslt to remove namespace is failing because of invalid characters in response. @Dino @Anil Sagar
<ns2:Memo>31195�@*</ns2:Memo>
Is there anyway this can be handled using javascript or XSLT. We are not bothered about what is inside of that XML. We just want to remove the namespace, transform it to JSON and send to client. We just want to remove the namespace, transform it to JSON and send to client.
If you have characters like that, it's not well-formed XML.
That means Apigee Edge will not handle it as XML. Apigee Edge is behaving correctly.
Characters like that can appear in the payload for several reasons.
The last case is unlikely, since Apigee Edge is designed to respect the Content-type header and do the right thing.
.................
If I were doing this, I would try, in this order:
..............
I've seen this happen when an application used Java to serialize an object containing Unicode strings to XML but did not specify the UTF-8 encoding on the output stream. The fix was to correct that output stream.