radhika1
8 years agoContributor
XPAth query
Hi, I need to pick the value from reference number text .Can u please guide highlighted below using an xpath/xquery. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/...
def infoKey = context.expand( '${SoapServiceStep#declare namespace ac=\'http://www.moneygram.com/AgentConnect1705\'; //ac:transactionLookupResponse[1]/ac:Payload[1]/ac:infos[1]/ac:info[2]/ac:infos[1]/ac:info[18]/ac:infoKey[1]}' ) log.info infoKey
This should find your value. Add a groovy step and paste this and update the name of the step where I called it "SoapServiceStep" When you run it you should get the value you are looking to find.