Aug 11th, 2006, 08:46 PM
Pass XML as String
Hi, this is a general web service question i think.
My web service takes a String type parameter and the string could be any valid xml document (we have another paramter with which we can get all the details as to how to interpret the xml string). The web service is implemented using AXIS.
This works fine but one issue coming up is our clients use all kinds of SOAP client, some of them creating the SOAP payload by themselves. In that case, they have to escape the xml string parameter ( using < and > to escape the < and > tags). Othewise Axis on the server side will throw exceptions. If the client use axis client tool or .net, usually they do not have to do that manually.
I'd like to see a solution that does not require the client to do any xml escaping.