Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Inbound Data Mapping of SOAP Request with CDATA throws Error

SA-18842

Summary



Unable to Parse XML enclosed in CDATA during Service SOAP Inbound Data Mapping. The Parse XML fails when CDATA tag is present in the SOAP Request and user is trying to parse the data within the CDATA.


Error Messages



Failed to parse XML. Error: The markup in the document preceding the root element must be well-formed.


Steps to Reproduce



1. Create a Service SOAP which accepts LiteralXML in Request
2. The SOAP Request must contain CDATA tag within which certain data is present which needs to be parsed.
3. Test the Service from any SOAP application.
4. Trace the Service.


Root Cause



A software use or operation error, user configured parse-xml with 'Standard' mode with context page of Data- class to handle the CDATA.

Resolution



Perform the following local-change steps:
  1. Implemente Parse-XML with 'LiteralXML' mode with a property to handle XML content present in CDATA.
  2. Parse-XML rule when used in inbound data mapping from service activity the CDATA tags must be handled under Property-Set method. 

 

Published February 9, 2016 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us