Forum Discussion
omatzura
16 years agoSuper Contributor
Hi Raymond,
sorry for the delayed response; it seems to me you are missing the namespace ("urn:azrtestsite") in your xpath query, please try the following:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( "Valideer Bericht#response" )
holder.namespaces["ns"] = "urn:azrtestsite"
def SoapFout = holder.getNodeValue("//ns:Foutmelding")
log.info('Soapfout found : [' + SoapFout + ']')
Does that help?
regards!
/Ole
eviware.com
sorry for the delayed response; it seems to me you are missing the namespace ("urn:azrtestsite") in your xpath query, please try the following:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( "Valideer Bericht#response" )
holder.namespaces["ns"] = "urn:azrtestsite"
def SoapFout = holder.getNodeValue("//ns:Foutmelding")
log.info('Soapfout found : [' + SoapFout + ']')
Does that help?
regards!
/Ole
eviware.com