ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Session Management for HTTP request in WMB

Post new topic  Reply to topic
 Session Management for HTTP request in WMB « View previous topic :: View next topic » 
Author Message
prabhuoist
PostPosted: Tue Feb 06, 2018 5:45 am    Post subject: Session Management for HTTP request in WMB Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Feb 06, 2018 7:18 am    Post subject: Re: Session Management for HTTP request in WMB Reply with quote

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
View user's profile Send private message
prabhuoist
PostPosted: Tue Feb 06, 2018 11:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Feb 07, 2018 5:41 am    Post subject: Reply with quote

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
View user's profile Send private message
mpong
PostPosted: Wed Feb 07, 2018 3:25 pm    Post subject: Reply with quote

Disciple

Joined: 22 Jan 2010
Posts: 164

It all depends on your provider. You need to check with them.

Thye might be able to provide all information how exactly you should make request

Sample below:

https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/Developers/GettingStarted/Authentication/authenticate-using-oauth.htm
Back to top
View user's profile Send private message
prabhuoist
PostPosted: Tue Feb 20, 2018 2:06 am    Post subject: Reply with quote

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
View user's profile Send private message
souciance
PostPosted: Tue Feb 20, 2018 5:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Shivam112233
PostPosted: Thu Mar 02, 2023 7:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Session Management for HTTP request in WMB
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.