Author |
Message
|
prabhuoist |
Posted: Tue Feb 06, 2018 5:45 am Post subject: Session Management for HTTP request in WMB |
|
|
Apprentice
Joined: 10 Oct 2017 Posts: 39
|
Hi Team,
Need one help. I have a requirement where from WMB, I need to make web service calls.
Here first I need to send login request once it is successful then response would have one session id.
Using same session id, I need to hit another(actual) web service requests(client) where client would first validate the session id and then process the request.
Is it possible using HTTPRequest or SOAPRequest node ? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 06, 2018 7:18 am Post subject: Re: Session Management for HTTP request in WMB |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
prabhuoist wrote: |
Is it possible using HTTPRequest or SOAPRequest node ? |
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
prabhuoist |
Posted: Tue Feb 06, 2018 11:18 pm Post subject: |
|
|
Apprentice
Joined: 10 Oct 2017 Posts: 39
|
Hi,
Do we need to send both(login and actual request) for every incoming request.
Or can we create login session only once and then send all the actual requests in that session. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 07, 2018 5:41 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
prabhuoist wrote: |
create login session only once and then send all the actual requests in that session. |
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mpong |
Posted: Wed Feb 07, 2018 3:25 pm Post subject: |
|
|
Disciple
Joined: 22 Jan 2010 Posts: 164
|
|
Back to top |
|
 |
prabhuoist |
Posted: Tue Feb 20, 2018 2:06 am Post subject: |
|
|
Apprentice
Joined: 10 Oct 2017 Posts: 39
|
Hi There,
Is it possible to create login session in WMB only once(for first request) and use the same session for all other incoming requests until session gets ideal for sometime ? |
|
Back to top |
|
 |
souciance |
Posted: Tue Feb 20, 2018 5:23 am Post subject: |
|
|
Disciple
Joined: 29 Jun 2010 Posts: 169
|
After you login just save the sessionId in some Environment or LocalEnvironment variable and use that to populate in your relevant header and send it in the next request. |
|
Back to top |
|
 |
Shivam112233 |
Posted: Thu Mar 02, 2023 7:45 pm Post subject: |
|
|
Newbie
Joined: 15 Nov 2021 Posts: 2
|
Follow up question on same , We are also doing the same . We have backend soap webservice .We first have to create a session , add the session id and then login and then execute the required operation .
If we get the token with first login , and it might be valid for further few request . When token get expired , do automatically environment variable gets deleted which hold the session id?
and do we have to handle this expiry case explicitly , in case token get expired , call the session create webservice again to get refreshed or new session id .
Thankyou |
|
Back to top |
|
 |
|