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