We have a Web Service which is reading data from DB, and return as a SOAP response. We also have a .Net as a consumer to read the SOAP response, parse it and display on the GUI.
But the issue here is, in some cases user may key in some strange character and when we set it in response, .net client can not parse it correctly and always throw an Exception.
Below is an example of the element in reponse:
<Desc>��&lt;</Desc>
You can see above character is a 4 bytes character, which out of UTF-8, and it have a '<' character followed, when we parse this kind of element the exception will be thrown always.
So the quetsion here is:
1. Can we do any other encode the convert this kind of character?
2. Can we use CDATA in SOAP response within Axis framework? I think if we can do so your problem can be resolved.
Thanks
Kent
Find just what you're after with the new, more precise MSN Search - try it now!
