Forum Discussion
Siemens__s_r_o_
12 years agoOccasional Contributor
Hi Marcus,
After some experimenting, blood and tears, I figured out that this was indeed a namespace issue in xpath.
"requestContent.getNodeValue("//EndDeviceAssets:arg")" did the trick
Both
and
work as expected ans return "somestring" from my request.
Thanks for help, we can resolve the thread
Jakub
After some experimenting, blood and tears, I figured out that this was indeed a namespace issue in xpath.
"requestContent.getNodeValue("//EndDeviceAssets:arg")" did the trick

Both
import com.eviware.soapui.support.XmlHolder;
XmlHolder requestContent = new XmlHolder(mockRequest.requestContent);
log.info(requestContent.getNodeValue("//EndDeviceAssets:arg"));
and
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def requestContent = groovyUtils.getXmlHolder( mockRequest.requestContent )
log.info requestContent.getNodeValue("//EndDeviceAssets:arg")
work as expected ans return "somestring" from my request.
Thanks for help, we can resolve the thread

Jakub