Forum Discussion

awsgamdocs's avatar
awsgamdocs
Occasional Contributor
11 years ago

[R] authorization Token from REST Response to other REST Hea

Hi,

I’ve started using SoapUI Pro 4.5.1 few days ago and soon moving to 4.6.4 (within 2 days).
Some of the RESTs require the generated authorization Token we get from the Login REST Response
e.g.
We invoke the login REST



Once passed we get EmptyObject as json response and then we have to manually extract the uxautherization token and use it in the next REST's header as follows:-


How can I make this happen for each one of the RESTs which requires the authorization header and Token gotten from the latest Login Response to be updated in the REST before it's invoked (Run).
And please note that the the Token part is needed that comes after the ":" as shown in the Login Response.

Things I tried so far:-
I added the Login Request test to the other REST's TestCase and created a property transfer from the Login Response to the other REST's Request as follows:-

11 Replies