โ06-18-2018 11:12 PM
I have XML generated in Previous snaps with all required SOAP headers and stored as a string(let say $xml). I am passing this to SOAP execute in Customize Envelope as $xml. I am getting error as below
Failure: Unexpected character โ&โ (code 38) in prolog; expected โ<โ at [row,col {unknown-source}]: [1,1], Reason: Snap failed unexpectedly and did not provide any reason
Please check and let me know if I am doing something wrong.
Thanks in Advanceโฆ!!
โ06-19-2018 09:41 PM
Figured it outโฆ
Used #evaluate($xml) in Customize Envelope
โ10-05-2021 12:28 AM
Hi Sandeep where did you configured #evaluate($xml) in XML ?? Could you tell me ?
I am receiving unexpected character โdโ as well
โ10-05-2021 05:13 PM
Hi @deepanshu.1
Our SOAP Customize Envelope editor accepts Velocity template commands. #evaluate
is a directive. You can use variables too. The snap bundles with Apache Velocity v1.7. Hereโs a link to their user guide plus another link to some SnapLogic documentation about it.
https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438085/Apache+Templates+in+Snaps
There are other community posts about velocity which you can search. If you
give some more specifics about your error, we may be able to help here too. ๐
โ10-05-2021 11:45 PM
Hi @mbowen below is the error i am getting but when i configured the xml in xml generator and validator its not giving me any error: