Forum Discussion
SmartBear_Suppo
Alumni
17 years agoHi Anand,
The reason your snippet wasn't able to access the node from SOAP response is because you didn't register the default namespace for your particular SOAP response message.
Try this:
I hope this will work out for you.
Cheers!
/Nenad Nikolic a.k.a. Shonzilla
The reason your snippet wasn't able to access the node from SOAP response is because you didn't register the default namespace for your particular SOAP response message.
Try this:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder ("Test Request#Response")
holder.namespaces["aws"] = "http://webservices.amazon.com/AWSECommerceService/2007-02-22"
output = holder.getNodeValues("//aws:Author")
UISupport.showInfoMessage("author is ${output}")
I hope this will work out for you.
Cheers!
/Nenad Nikolic a.k.a. Shonzilla