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 / October 2006

Tip: Looking for answers? Try searching our database.

How to create proxy classes using WSDL.exe if server uses compression

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Angel Of Death - 06 Oct 2006 14:07 GMT
If server uses HTTP 1.1 Gzip compression, how can I use the classes
generated using WSDL.exe.

I can do :

protected override WebRequest GetWebRequest(Uri uri)
   {
       WebRequest request = base.GetWebRequest(uri);
       request.Headers.Add("Accept-Encoding", "gzip, deflate");
       return request;
   }

   protected override WebResponse GetWebResponse(WebRequest request)
   {
       // and use System.IO.Compression.Gzip somehow ?!?!
   }

I'm just not too sure how to override GetWebResponse so that it uses the
new IO.Compression Namespace.

Angel
John Saunders - 06 Oct 2006 18:38 GMT
> If server uses HTTP 1.1 Gzip compression, how can I use the classes
> generated using WSDL.exe.

Do you mean that the server uses gzip compression when you didn't ask for
it? Sounds broken.

John
Angel Of Death - 06 Oct 2006 18:44 GMT
>>If server uses HTTP 1.1 Gzip compression, how can I use the classes
>>generated using WSDL.exe.
>
> Do you mean that the server uses gzip compression when you didn't ask for
> it? Sounds broken.

Erm yes that is exactly right.

So I should complain to the WebMaster ;-)
John Saunders - 06 Oct 2006 22:40 GMT
>>>If server uses HTTP 1.1 Gzip compression, how can I use the classes
>>>generated using WSDL.exe.
[quoted text clipped - 5 lines]
>
> So I should complain to the WebMaster ;-)

Absolutely. Does this web server do the same thing with web pages?

John
Angel Of Death - 09 Oct 2006 11:59 GMT
>>>>If server uses HTTP 1.1 Gzip compression, how can I use the classes
>>>>generated using WSDL.exe.
[quoted text clipped - 7 lines]
>
> Absolutely. Does this web server do the same thing with web pages?

I'm guessing not, in that I am able to see the webpages correctly.

Rate this thread:







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.