Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Can't get asynch Web Service calls to work in IIS 7 with Compressi

Thread Tools

Can't get asynch Web Service calls to work in IIS 7 with Compressi

Paul Duncan
Posts: n/a
I need to perform an asynchronous web service call to an ASP.NET service
running on IIS 7 using Dynamic Compression, and it is failing.

I'm using the basic 'Hello World' web service, and the default proxy I
created using wsdl. I've also overridden WebResponse so that I can
decompress the GZIPPED response. Stepping through, I see that this code is
working fine and my response is getting decompressed. However, when I call
proxy.EndHelloWorld(), it throws an 'XmlException: Unexpected end of file ...
position 312'. In Fiddler, I can see that the file's content-length is 311,
but is obviously longer when decompressed.

If I call the method synchronously, it works, if I turn off Dynamic
Compression in IIS7, it works, or if I use IIS 6 it works. In IIS6, I notice
the response does not have a content-length, but rather a transfer-encoding
of 'chunked'. So, when calling IIS 7, I set a breakpoint in Fiddler and
changed the response to chunked, and it worked fine. Perhaps the answer is
to set something in IIS7 so that my responses are chunked, but it seems
strange that this doesn't just work out of the box.

Thanks for any help you can give on this,
Reply With Quote

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asynch Web Service calls in IIS7 with Dynamic Compression Paul Duncan ASP .Net Web Services 8 02-10-2010 10:05 PM
Asynch calls from a Web Form Hans Baumann ASP .Net Web Services 0 01-24-2006 07:17 PM
Handling multiple Asynch Web Service Calls from an ASP.NET Web Page ASP .Net 2 03-27-2005 03:58 PM
Calling an Asynch web service within a web service. Tony T. ASP .Net Web Services 0 04-25-2004 11:46 PM
Access web page after asynch callback Glen ASP .Net 3 01-23-2004 04:19 PM