Forum Discussion
ReshmaSachdev
13 years agoContributor
Try folowing:
groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
holder = groovyUtils.getXmlHolder( "Request_Name#Response" )
holder.namespaces["tns"] = "http://www.ifxforum.org/IFX_150"
holder.getNodeValues("//tns:BankAcctTrnRec[1]/tns:TrnType")
TrnType= TrnType.toString()
assert TrnType == "Debit"
I am refering the name spaces as mentioned in the response
groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
holder = groovyUtils.getXmlHolder( "Request_Name#Response" )
holder.namespaces["tns"] = "http://www.ifxforum.org/IFX_150"
holder.getNodeValues("//tns:BankAcctTrnRec[1]/tns:TrnType")
TrnType= TrnType.toString()
assert TrnType == "Debit"
I am refering the name spaces as mentioned in the response