Policy Xpress SOAP call failing when value contains ampersand
search cancel

Policy Xpress SOAP call failing when value contains ampersand

book

Article ID: 92320

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Governance CA Identity Portal

Issue/Introduction

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.

 

Environment

Release:
Component: IDMGR

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://<domain>.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