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:
- Implemente Parse-XML with 'LiteralXML' mode with a property to handle XML content present in CDATA.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.