For the first case, I modify the script:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def response = context.expand( '${statusRequestPending#Response}' )
def holder = groovyUtils.getXmlHolder( response )
def cdata = holder.getDomNode('//outputMsg/text()').nodeValue
def holder2 = groovyUtils.getXmlHolder( cdata )
xmlBody = new XmlSlurper().parseText(holder2.getXml())
status = xmlBody.@result
log.info status
if ( status == "pending" )
{
log.info("SearchUser - wrong status: $status")
testRunner.fail( "status" )
}
Now the status variable is set to "urn:oasis:names:tc:SPML:1:0#pending"; how can extract only the value after the "#" character ?