rottier
12 years agoNew Contributor
help to define holder for response
Hello,
i'm working on SOAP-UI free 4.5.1
on my first try, i can define a holder to choose my reponse easily with this
WS sent :
<item1>value</item1> where from value i put "OK" or "Reject"
and in order to choose the mock response "Ok" or "Reject" by script
def item1 = holder["//cfn:item1"].toString()
if(item1 != "OK")
item1 = item1.substring(0,6)
return item1
But now, i have a new wsdl ans i didn't succeed to catch it
<cfn:item0>
<cfn:log item1="OK" item2="011410000"/>
</cfn:item0>
Please, could you help me to resolved it, i'd like to do the same test, only to change item1 value to change response (OK, Reject)
in advance , thanks for your reply
KR
Christian
i'm working on SOAP-UI free 4.5.1
on my first try, i can define a holder to choose my reponse easily with this
WS sent :
<item1>value</item1> where from value i put "OK" or "Reject"
and in order to choose the mock response "Ok" or "Reject" by script
def item1 = holder["//cfn:item1"].toString()
if(item1 != "OK")
item1 = item1.substring(0,6)
return item1
But now, i have a new wsdl ans i didn't succeed to catch it
<cfn:item0>
<cfn:log item1="OK" item2="011410000"/>
</cfn:item0>
Please, could you help me to resolved it, i'd like to do the same test, only to change item1 value to change response (OK, Reject)
in advance , thanks for your reply
KR
Christian