.NET Framework Bookmark and Share   
 index > ASMX Web Services and XML Serialization > WSE and Asynchronous WebMethod issue
 

WSE and Asynchronous WebMethod issue

Hey,

Does anyone know why asynchronous webmethods don't seem to work outside of ASP.NET in IIS? I am trying to follow the example from the MSDN article below, and it works fine in ASP.NET under IIS but not in WSE hosted outside IIS.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconCreatingAsynchronousXMLWebServiceMethod.asp

I tried the Begin/End signature and hosted it in WSE and it worked somewhat, but immediately after the Begin it goes straight to the End and uses EndInvoke in a blocking manner instead of an async callback like if the same class is hosted in ASP.NET under IIS.

I suspect that it has something to do with the fact that WSE does not use IHttpAsyncHandler.

I am using Aaron's HTTP WSE transport http://pluralsight.com/blogs/aaron/archive/2005/10/14/15571.aspxwhich is working fine for processing synchronous web requests.

Tim Erwin

What you have observed is expected. WSE hosted web methodonly supports the async method in a blocking fashion.

Thanks!

hongmei

Hongmei Ge

What you have observed is expected. WSE hosted web methodonly supports the async method in a blocking fashion.

Thanks!

hongmei

Hongmei Ge

Thanks! I could not find this anywhere and it was really frustrating. I think that is a serious handicap for WSE.

I've moved on to WinFx with ServiceHost (which supports this functionality) and will be using GoLive if we need it in production before it is released.

Tim Erwin

You can use google to search for other answers

Custom Search

More Threads

• Open a window from web service
• Asp.net Configuration option doesn't work .
• RoleManager not working
• Long Class Names from the XSD.exe tool
• Root Element Is Missing Error when trying to use custom httphandler to pass data from Adobe form to sharepoint list on server 2008
• Access Webservice from an untrusted Domain
• Error when compiling a class that uses web services in release mode
• How to prevent malicious people to use my web services
• The request failed with HTTP status 400: Bad Request.
• Does anyone know how to change SharePoint Webparts programatically?