HighTechTalks DotNet Forums  

Server-Side Asynchronous Web Methods and WSE 3.0

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Server-Side Asynchronous Web Methods and WSE 3.0 in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
eric.robinson@merrickbank.com
 
Posts: n/a

Default Server-Side Asynchronous Web Methods and WSE 3.0 - 08-20-2007 , 02:03 PM






I have a server-side asynchronous web method that I built using advice from this article. http://msdn2.microsoft.com/en-us/library/aa480516.aspx

The web method works great, until I add the soapServerProtocolFactory configuration tag that adds the WseProtocolFactory to the server side. It throws a null pointer exception error. But that error comes from the WSE trying to access the HTTPContext before it has been given back. I don't know what the real error is. Has anyone ran into this problem? Does WSE 3.0 support the server-side asynchronous web method model? Here is a copy of the error I get.

Type : System.NullReferenceException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : Object reference not set to an instance of an object.
Source : Microsoft.Web.Services3
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Microsoft.Web.Services3.StateManager GetOrCreateSessionStateFromHttpContext()
Stack Trace : at Microsoft.Web.Services3.WseProtocol.GetOrCreateSes sionStateFromHttpContext()
at Microsoft.Web.Services3.WseProtocol.GetWriterForMe ssage(SoapServerMessage message, Int32 bufferSize)
at System.Web.Services.Protocols.SoapServerProtocol.W riteException(Exception e, Stream outputStream)
at System.Web.Services.Protocols.WebServiceHandler.Wr iteException(Exception e)
at System.Web.Services.Protocols.WebServiceHandler.En dInvoke(IAsyncResult asyncResult)
at System.Web.Services.Protocols.WebServiceHandler.En dCoreProcessRequest(IAsyncResult asyncResult)
at System.Web.Services.Protocols.AsyncSessionlessHand ler.EndProcessRequest(IAsyncResult asyncResult)
at System.Web.HttpApplication.CallHandlerExecutionSte p.OnAsyncHandlerCompletion(IAsyncResult ar)


Any help? Notice this is not calling a web method asynchronous , this is a server side asynchronous web method.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.