Policy Xpress SOAP call failing when value contains ampersand

Document ID : KB000092320
Last Modified Date : 19/04/2018
Show Technical Document Details
Issue:
Using Policy Xpress for soap calls - when we pass department infomration to the endpoint which has ampersand (&) symbol in it we are getting the error
The following exception occured: org.apache.axis2.AxisFault: The reference to entity "X" must end with the ';' delimiter.

 
Cause:
ampersand (&) is breaking the XML format - it needs to be wrapped
Resolution:
wrapping the request as following
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://Atos.Net/AutomaticProvisioningToNN/">
   <soapenv:Header/>
   <soapenv:Body>
     <![CDATA[  <aut:doDisable>
         <aut:provisionedObjectIdentifier>{'LogonID'}</aut:provisionedObjectIdentifier>
      </aut:doDisable> ]]>
   </soapenv:Body>
</soapenv:Envelope>
Additional Information:
https://stackoverflow.com/questions/18957661/how-to-escape-ampersand-in-soap-ui