RE: Asynchronous Web Service Method Failure

From: Bruce Johnson (bjohnson_at_spammenot.objectsharp.com)
Date: 12/21/04


Date: Tue, 21 Dec 2004 10:49:04 -0800

Oooo. Session ids and web services.

I have to ask. Have you enabled sessions for your web service. If
memory serves, this is done by setting EnableSession to true in the
WebMethod attribute. And 'false' is the default, as using sessions in a
web service is tricky.

Also, does your client persist the cookies returned by each of the web
methods and pass them along to subsequent ones. This is not the
'default' behavior of the proxy class that WSDL.exe generates, for
example. I strongly suspect that WSDL.exe is not alone in it's default.
But it means that every web method call will appear to be in a different
session.

Finally, the exception you're getting is probably being through by the
method that is manipulating the stream. In async called, any exceptions
through by the 'remote' method are held onto until the End... method is
called.

Bruce Johnson [.NET MVP]
http://www.objectsharp.com/blogs/bruce

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • Re: How do Large Scale Web Service Applications Maintain Session State?
    ... cache these profiles on the server in order to increase performance. ... which is something different than stateful Web Service classes. ... We do pass a session token as ... Having systems deployed through web services allows clients to access via ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Help understanding sessions in Web service w/ legacy VB6 event handling
    ... ArrayList declared as a member of the Web service class. ... Both are marked with the "enable session" ... After all the event handlers have processed all the fired events, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Web Service State
    ... You can enable the ASP.NET session for the web services, but as you said, it ... users store the session state. ... - Store state on the server and uniquely identify each visitor. ... We use windows authentication to authorise users to our web service, ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Asynchronous Web Service Method Failure
    ... >When a session begins, I create a folder for that session in a virtual ... To open a stream, I use ... >the URL of the file is returned by the web service method. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Asynchronous Web Service Method Failure
    ... When a session begins, I create a folder for that session in a virtual ... When the user requests a report, sometimes a stream is opened to load some ... the URL of the file is returned by the web service method. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)