• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web service vs HTTP session

 
Greg Parker
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How correct am I when I use HTTP session information in a web based web service endpoint code (say Axis)? Does the specification block me from doing it? Is the web service supposed to be a piece of business functionality exposed regardless of the medium it is communicated through? Context : when i am trying to expose a web service to a javascript soap client i have the capability to use the session info but is it correct to do so? What are the tradeoffs. Thanks in advance for the answers..
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SOAP specifically does not say anything about persistence via sessions or any other mechanism so it is up to you, the programmer. The HttpSession mechanism gets activated before your SOAP service sees the request.

If your service is only going to be accessed by browsers implementing cookies, sure you can use sessions. Of course some potential users may have cookies turned off so that could be a problem.

Bill
 
Greg Parker
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks William..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic