Forum Discussion
Beno_Iskratel
15 years agoFrequent Contributor
simple code from one of my projects:
comparing 2 parameters from 2 different soap responses.
def request = context.expand( '${modifySubscriberSupplementaryServiceSet_id - supp#Request#declare namespace urn=\'urn:iskratel-si:itnbsp-1-0\'; //urn:modifySubscriberSupplementaryServiceSetRequest[1]/subscriber[1]/@supplSrvSetId}' )
def response = context.expand( '${getSubscriberSupplementaryServiceSet_id - supp#Response#declare namespace ns1=\'urn:iskratel-si:itnbsp-1-0\'; //ns1:getSubscriberSupplementaryServiceSetResponse[1]/subscriber[1]/param[1]/@supplSrvSetId}' )
assert request==response
i hope it helps,
beno
comparing 2 parameters from 2 different soap responses.
def request = context.expand( '${modifySubscriberSupplementaryServiceSet_id - supp#Request#declare namespace urn=\'urn:iskratel-si:itnbsp-1-0\'; //urn:modifySubscriberSupplementaryServiceSetRequest[1]/subscriber[1]/@supplSrvSetId}' )
def response = context.expand( '${getSubscriberSupplementaryServiceSet_id - supp#Response#declare namespace ns1=\'urn:iskratel-si:itnbsp-1-0\'; //ns1:getSubscriberSupplementaryServiceSetResponse[1]/subscriber[1]/param[1]/@supplSrvSetId}' )
assert request==response
i hope it helps,
beno