Skip to content

Instantly share code, notes, and snippets.

@js1972
Created May 5, 2014 08:59
Show Gist options
  • Save js1972/11531916 to your computer and use it in GitHub Desktop.
Save js1972/11531916 to your computer and use it in GitHub Desktop.
How to access the SOAP request and do some xpath processing in SoapUI with Groovy. Uses XmlSlurper and GPath.
def req = new XmlSlurper().parseText(mockRequest.requestContent)
log.info "Customer #${req.foo.data.CustomerNumber}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment