Sending Illegal XML Characters in Soap Request
- by SK
I am trying to send special (&, ' (single quote)) characters in the Soap Request. I am using axis 1.4. The webservice client is in weblogic server and the webservice server is an ibm mainframe (COBOL program).
The request data from the client contains special character (& symbol) which is converted to &
I tried to enclose it with CDATA as
<![CDATA[Some Name & Some Data ]]>
which got converted to
<![CDATA[Some Name & Some Data]]>
The webservice client is generated from wsdl, so I couldn't use CDATA api to construct the request. I am able to set it as string value, and it is getting converted.
Any help on this would be greatly appreciated. Please let me know if you need any more information on this.