Hi,
Script code line
messageExchange.getRequestContentAsXml().toString()
will not work until unless you use these script lines where the messageExchange variable is exposed. So the simplest way i can suggest you to do property transfer would be a 2 step process.
- Get the raw response content using above code lines in a script assertion and store it in a Test Case level user created property variable.
- Write a Xpath expression on for the content (rawResponse) in the user created property variable. And transfer the so obtained value to another variable or request.
I hope this will help or alteast give you a pointer to go about.
Best Regards,
/Pradeep Bishnoi
http://learnsoapui.wordpress.com