cancel
Showing results for 
Search instead for 
Did you mean: 

Passing XML to SOAP Execute Snap

SandeepVemula
Contributor

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…!!

5 REPLIES 5

SandeepVemula
Contributor

Figured it out…

Used #evaluate($xml) in Customize Envelope

Hi Sandeep where did you configured #evaluate($xml) in XML ?? Could you tell me ?

I am receiving unexpected character ‘d’ as well

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. 🙂

deepanshu_1
New Contributor III

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:

image