how to use token id in second request
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how to use token id in second request
i am using soapui 5.2.1 where in first login request i am getting token id and this token id i want to use in second request so how to automated this token id and this token id will expire in 24 hrs . and my request and response is in JSON
Thanks,
Mahadev
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remove angular brackets before and after the user name( that was given for the notation only)
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot ! done
but now my next step/case request want to run and in this request i need to use this Token ID ..
currently i am adding this token id in this request Header as Authorization...then it will work
but without adding this it will not work
and after some times when token id is expired then will need to replace new token id in this authorization
i m really very new to this all so please guide me
Thanks
Mahadev
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

08-17-2017 09:11 PM
AreN'T you supposed to get a json response? Just getting only token as response? A screen shot of raw response would help better.
If you just getting only token, then script needs to changed to handle that.
If you have multiple users to test, then save them as : <USERNAME>_TOKEN at project level and use appropriately.
for example, testuser token is fetched, save it as TESTUSER_TOKEN and its value at project level and use it as ${#Project#TESTUSER_TOKEN} where needed in the rest of the project.
Hope this clear.

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »