Forum Discussion
zxsoap
16 years agoOccasional Contributor
Hi OLE,
How can I get a value node (ALL account_ID) which's occuring more then one time (see below respone)? Ex, my response return more than one account_id. Now I'm only get just the first accountID on xml response. But, I need to get all? I want to return all account_id (14,68,22,41).
Here's what I used:
roovyUtils = new com.eviware.soapui.support.GroovyUtils(context )
holder = groovyUtils.getXmlHolder ("getAccountPricingGroupsByPriceGroupID#Response")
accid = holder.getNodeValue("//account_id")
log.info (accid)
Here's the response
14
3819178372
123
.......
68
17
6099471829
123
.......
22
6092357899
123
....
41
0451471007
.......
Thanks,
ZX
How can I get a value node (ALL account_ID) which's occuring more then one time (see below respone)? Ex, my response return more than one account_id. Now I'm only get just the first accountID on xml response. But, I need to get all? I want to return all account_id (14,68,22,41).
Here's what I used:
roovyUtils = new com.eviware.soapui.support.GroovyUtils(context )
holder = groovyUtils.getXmlHolder ("getAccountPricingGroupsByPriceGroupID#Response")
accid = holder.getNodeValue("//account_id")
log.info (accid)
Here's the response
Success
.......
.......
....
.......
Thanks,
ZX
Related Content
- 2 years agonormgean