sessionID and authentication in WS

T

Tina

All of the examples of web services in the books I have are using anonymous
access and don't utilize sessions. Is there any material anywhere that
shows how to authenticate and uses sessions in Web Services?

Also, why two webServices forums?
Thanks,
T
 
L

Laurent Bugnion [MVP]

Hi,
All of the examples of web services in the books I have are using anonymous
access and don't utilize sessions. Is there any material anywhere that
shows how to authenticate and uses sessions in Web Services?

Authentication and Session management in Web services is very much
similar in Web Applications.

The main difference is that in web services, to use the Session object,
you need to declare it in the web method attribute:

[WebMethod( EnableSession=True )]

Once this is done, you can store objects in the Session and retrieve
them in the next roundtrip.

Authentication can also be done similarly, for example using
DigestAuthentication. The request sent by the web browser is similar to
a "normal" HTTP request sent to load or refresh a web page for example.
Also, why two webServices forums?

No idea ;-)
Thanks,
T

HTH,
Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top