cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

CDATA In SOAP Execute

Deepak
New Contributor II

How to use CDATA information in the SOAP Execute snap. When I test in SOAPUI tool, it accepts CDATA and the execution is a success. In SL, I am getting the below error:

โ€œerrorโ€:
โ€œServer was unable to process request. โ€”> Error in xml: Data at the root level is invalid. Line 1, position 2.โ€

I have seen an earlier post on the same topic gone unanswered. Hoping for a response here ๐Ÿ™‚
How do we make it work.

1 REPLY 1

mbowen
Employee
Employee

The SOAP Execute snap offers a debug view which displays the raw payload of the SOAP request. This is helpful to debug these kinds of problems. It is documented here:

https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1437963/SOAP+Execute#SOAPExecute-Usingthed...

Sharing an example of the SOAP request with CDATA that works in SOAP-UI would be helpful too (remove any sensitive data before posting).

Escaping and transformations can sometimes be a bit tricky with our XML snaps, but there are workarounds oftentimes. But maybe letโ€™s start with the above. ๐Ÿ™‚