I am using soap UI (from smartbear) to send soap requests in xml format as :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsg="http://wsg.hpos.om.hp.com/">
<soapenv:Header/>
<soapenv:Body>
<wsg:abc>
<wsg:contract>
<request>
<request-attributes>
<message>"this & and that"</message>
</request-attributes>
</request>
</wsg:contract>
</wsg:abc>
</soapenv:Body>
</soapenv:Envelope>
and the response is : Invalid request. Could you please throw light on how to escape &? Thanks
You could wrap the payload inside <![CDATA[]]>
and not worry about escaping:
<![CDATA[<request>
<request-attributes>
<message>"this & and that"</message>
</request-attributes>
</request>]]>