xpath - How can we set the value to the header dynamically in SOAPUi? -
i'm new soapui. wanted know how can add 2 property value 1 header value.
for instance, got response in xml format:
<response xmlns="http://someurl"> <access_token>abc</access_token> <scope>scope1</scope> <token_type>bearer</token_type> </response>
i want send both access_token & token type single header value like:
"authorization":"bearer abc"
i not getting how using property transfer step.
can please me?
you can use xpath concat
function concatenate both values in 1 variable in property transfer steps, in case can use follow xpath:
concat(//*:token_type," ",//*:access_token)
concat function concatenates 2 or more strings, //*:token_type
gets bearer
value , //*:access_token
gets abc
.
hope helps,
Comments
Post a Comment