473,413 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Web Service Compression when ASP.NET is Consuming

Hi all, I'm familiar with web service compression and how to implement
it in a Winforms app. What I'm trying to figure out how to do at this
point is how to consume the service from an ASP.NET page. I've surfed
around quite a bit looking for an answer to this, but most of the stuff
I'm seeing is either talking about consuming from a Winforms app or
enabling web compression for ASPX pages to the user's browser.

Here's our setup: We have two servers. One of them is the ASP.NET
application, which is what the users are accessing. The second server
only hosts the web service that the ASP.NET app is calling. We're
going to have a respectable amount of requests from the ASP.NET
application the web service, so we want to enable web compression
through GZip to minimize bandwidth between them. On the server hosting
the web server we have installed a third-party application which gives
us more advanced support for GZipped compressed requests/responses (the
main reason we went with it is for the reports and monitoring tools it
comes with). We are only interested in enabling compression between
the web server and the web service server, NOT between the web server
and the user's browser.

So at this point, I'm not exactly sure of what to do on the ASP.NET
application's end of things; since it's running through IIS, can I
simply tell it to request the compressed response and expect that it'll
know how to decode the response?

Or do we have to code to tell the ASP.NET application to insert the
GZip header in the request and then make a SoapInputFilter to handle
the response (exactly like a Winforms app)?

Thanks in advance for any help!

Oct 18 '06 #1
1 1481
the webservice call from asp.net is the same as one for winforms (same
code). you will have to do the same work.

-- bruce (sqlwork.com)
"Andy" <re****@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Hi all, I'm familiar with web service compression and how to implement
it in a Winforms app. What I'm trying to figure out how to do at this
point is how to consume the service from an ASP.NET page. I've surfed
around quite a bit looking for an answer to this, but most of the stuff
I'm seeing is either talking about consuming from a Winforms app or
enabling web compression for ASPX pages to the user's browser.

Here's our setup: We have two servers. One of them is the ASP.NET
application, which is what the users are accessing. The second server
only hosts the web service that the ASP.NET app is calling. We're
going to have a respectable amount of requests from the ASP.NET
application the web service, so we want to enable web compression
through GZip to minimize bandwidth between them. On the server hosting
the web server we have installed a third-party application which gives
us more advanced support for GZipped compressed requests/responses (the
main reason we went with it is for the reports and monitoring tools it
comes with). We are only interested in enabling compression between
the web server and the web service server, NOT between the web server
and the user's browser.

So at this point, I'm not exactly sure of what to do on the ASP.NET
application's end of things; since it's running through IIS, can I
simply tell it to request the compressed response and expect that it'll
know how to decode the response?

Or do we have to code to tell the ASP.NET application to insert the
GZip header in the request and then make a SoapInputFilter to handle
the response (exactly like a Winforms app)?

Thanks in advance for any help!

Oct 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
8
by: FS Liu | last post by:
Hi, I am writing ATL Service application (XML Web service) in VS.NET C++. Are there any sample programs that accept XML as input and XML as output in the web service? Thank you very much.
6
by: kbs | last post by:
Hi, I'm looking for some good examples that illustrate how to code a web service that exposes a custom collection so that the properties of the collection are accessible on the client without...
16
by: Claudio Grondi | last post by:
What started as a simple test if it is better to load uncompressed data directly from the harddisk or load compressed data and uncompress it (Windows XP SP 2, Pentium4 3.0 GHz system with 3 GByte...
6
by: NutsAboutVB | last post by:
Hello, I am a .NET programmer and I have a JPEG image file (from digital camera) of about 109 KB's in size, when I open it and save it (without making any alterations at all, just going to File...
2
by: huz | last post by:
I need some advice, here is the situation: I have a web service (ASP 2.0) published on IIS, how can i make that only trusted (my) web applications consume it, and successfuly block all others???
2
by: rew190 | last post by:
Hi guys, I'm currently working on an application that is heavily dependant on web services. The web services are being run on an Apache Service through Axis. We'll be using mod_gzip to get the...
1
by: Rishika | last post by:
Hi, Im trying to create a web service client in visual basic.net. When the web service gets invoked in the client: Dim results() As Object = Me.Invoke("GetInstantaneousFlowData", New Object(-1)...
1
by: lowlyscrub | last post by:
I have an ASP.NET application that makes 12 different web service calls from a single method call. Each of the web services themselves don't do much more than run a small query (I've run the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.