Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2004

Tip: Looking for answers? Try searching our database.

Compressing entire ASP.NET or WebService page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mtv - 09 Dec 2004 22:05 GMT
Hi all,

On server, I want to capture Web Service response after it serialized and
before being sent down to network for compression. On client, I want to
capture the compressed data before it's deserialized to uncompress it. Would
someone give me some pointers?

On server, how to catch the event after it's serialized? How to send the
compressed data out to client?

On client, how to capture the raw data before it's deserialized so I can
decompressed the data?

Thanks.

Signature

Your 2 cents are worth $milion$. Thanks.

Mujtaba Syed - 10 Dec 2004 16:56 GMT
I don't know how to do this in in .NET 1.1 but in .NET 2.0 you can
decompress SOAP responses that have been compressed using IIS 6.0's new
compression feature:

class Proxy : SoapHttpClientProtocol
{
   protected override System.Net.WebRequest GetWebRequest (Uri uri)
  {
       HttpWebRequest request = (HttpWebRequest) GetWebRequest (uri);
       request.EnableDecompression = true;

       return request;
  }
}

Thanks,
Mujtaba.

> Hi all,
>
[quoted text clipped - 10 lines]
>
> Thanks.
Arthur Nesterovsky - 14 Dec 2004 10:10 GMT
Hi,

> I don't know how to do this in in .NET 1.1 but in .NET 2.0 you can
> decompress SOAP responses that have been compressed using IIS 6.0's new
> compression feature:

In .NET 1.1 you have to create your own filter and attach it to
HttpRequest.Filter.
Just take a look at the corresponding topic in MSDN. To create the deflate
compressed stream you can use SharpZipLib library
(http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx).
--
With best wishes, Arthur Nesterovsky
Please visit my home page:
     http://www.nesterovsky-bros.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.