management state with SOAP Header

C

Chuche

Hi colleague,

I have to developer a Web service (C#) and i need to maintain state
during multiples calls to it, The Web service go to be consumed from c
application. I look for information for doing it in the www and books,
and I have seen that I can do it with SOAP header. But i don´t find
any examples, Can somebody help me? Are there any examples in the web?


Thanks in advances
regards,

Chuche
 
J

Jason

If you set the WebMethod attribute "EnableSession" to true for each
method that requires session state information, you can read/write
objects to a collection called Session.

By default, cookies are used to maintain the seseion ID. If your C
client doesn't grok cookies, you can set cookieless="true" in your
web.config's sessionState line, then you get a session ID to tack onto
the end of your URL's.
 

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,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top