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
<SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ser-root:getIDResponse xmlns:ser-root="http://......com/amAccountDataServices.services">
<getAccountPricingGroupsByPriceGroupIDRes>
<responseStatus>
<code>Success</code>
</responseStatus>
<pricingGroupAccount>
<ArrayOfpricingGroupAccountItem>
<account_id>14</account_id>
<account_number>3819178372</account_number>
<account_type_code>123</account_type_code>
.......
<state_code>68</state_code>
</ArrayOfpricingGroupAccountItem>
<ArrayOfpricingGroupAccountItem>
<account_id>17</account_id>
<account_number>6099471829</account_number>
<account_type_code>123</account_type_code>
.......
</ArrayOfpricingGroupAccountItem>
<ArrayOfpricingGroupAccountItem>
<account_id>22</account_id>
<account_number>6092357899</account_number>
<account_type_code>123</account_type_code>
....
</ArrayOfpricingGroupAccountItem>
<ArrayOfpricingGroupAccountItem>
<account_id>41</account_id>
<account_number>0451471007</account_number>
.......
</ArrayOfpricingGroupAccountItem>
</pricingGroupAccount>
</getAccountPricingGroupsByPriceGroupIDRes>
</ser-root:getIDResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Thanks,
ZX