473,471 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Optimizing webservice call which are returning datasets

Hi all,

Application environment :
VB.Net desktop application,.NET 1.1 Framework, VS 2003.
communicates between the database and the application is done over
webservices using ADO.NEt Datasets.
Returned dataset is Gzip compressed and is then decompressed on the
receiving side.

Every thing works good, the problem is that it takes a lot of time for the
webservice to return my data filled dataset even if there is not much data, i
thnk the reson being 1. serilization of dataset is expensive 2. datset is all
XML and so even XML tags add to the space as well. Even though this is all
compressed but even then it is taking long and their always is room for
improvment, can any one out there tell me
the best strategy for trasferring the data over the webservice i.e should I
replace the dataset with another object for transmiting it over the
webservice OR is there any other way to make sure datasets are tranmitted
faster.

thanks

Sameer

Feb 10 '06 #1
7 3534
Maybe the delay is caused by the compression or fetching the data rather
than the transmission size/time?
"sameer" <sa****@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
Hi all,

Application environment :
VB.Net desktop application,.NET 1.1 Framework, VS 2003.
communicates between the database and the application is done over
webservices using ADO.NEt Datasets.
Returned dataset is Gzip compressed and is then decompressed on the
receiving side.

Every thing works good, the problem is that it takes a lot of time for the
webservice to return my data filled dataset even if there is not much
data, i
thnk the reson being 1. serilization of dataset is expensive 2. datset is
all
XML and so even XML tags add to the space as well. Even though this is all
compressed but even then it is taking long and their always is room for
improvment, can any one out there tell me
the best strategy for trasferring the data over the webservice i.e should
I
replace the dataset with another object for transmiting it over the
webservice OR is there any other way to make sure datasets are tranmitted
faster.

thanks

Sameer

Feb 11 '06 #2
Ken , thanks for your reply,
nope, if not for compression it takes a long time, like if with compression
it takes 1 minutes then without cmpression it takes 3-4 minutes. And there
really is not that much data in the dataset, so again i am trying to blame
XML tags for incresing the size of the data. So does any one out there know a
better alternative to passing data over the webservice instead of passing a
dataset.

thanks

"Ken Cox - Microsoft MVP" wrote:
Maybe the delay is caused by the compression or fetching the data rather
than the transmission size/time?
"sameer" <sa****@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
Hi all,

Application environment :
VB.Net desktop application,.NET 1.1 Framework, VS 2003.
communicates between the database and the application is done over
webservices using ADO.NEt Datasets.
Returned dataset is Gzip compressed and is then decompressed on the
receiving side.

Every thing works good, the problem is that it takes a lot of time for the
webservice to return my data filled dataset even if there is not much
data, i
thnk the reson being 1. serilization of dataset is expensive 2. datset is
all
XML and so even XML tags add to the space as well. Even though this is all
compressed but even then it is taking long and their always is room for
improvment, can any one out there tell me
the best strategy for trasferring the data over the webservice i.e should
I
replace the dataset with another object for transmiting it over the
webservice OR is there any other way to make sure datasets are tranmitted
faster.

thanks

Sameer


Feb 12 '06 #3
Remoting is an excellent way to transfer data efficiently. It doesn't have
the overhead of SOAP but it isn't as universal.

http://msdn.microsoft.com/library/de...ngoverview.asp

"sameer" <sa****@discussions.microsoft.com> wrote in message
news:F6**********************************@microsof t.com...
Ken , thanks for your reply,
nope, if not for compression it takes a long time, like if with
compression
it takes 1 minutes then without cmpression it takes 3-4 minutes. And there
really is not that much data in the dataset, so again i am trying to blame
XML tags for incresing the size of the data. So does any one out there
know a
better alternative to passing data over the webservice instead of passing
a
dataset.

thanks

"Ken Cox - Microsoft MVP" wrote:
Maybe the delay is caused by the compression or fetching the data rather
than the transmission size/time?
"sameer" <sa****@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
> Hi all,
>
> Application environment :
> VB.Net desktop application,.NET 1.1 Framework, VS 2003.
> communicates between the database and the application is done over
> webservices using ADO.NEt Datasets.
> Returned dataset is Gzip compressed and is then decompressed on the
> receiving side.
>
> Every thing works good, the problem is that it takes a lot of time for
> the
> webservice to return my data filled dataset even if there is not much
> data, i
> thnk the reson being 1. serilization of dataset is expensive 2. datset
> is
> all
> XML and so even XML tags add to the space as well. Even though this is
> all
> compressed but even then it is taking long and their always is room for
> improvment, can any one out there tell me
> the best strategy for trasferring the data over the webservice i.e
> should
> I
> replace the dataset with another object for transmiting it over the
> webservice OR is there any other way to make sure datasets are
> tranmitted
> faster.
>
> thanks
>
> Sameer
>


Feb 12 '06 #4
could be very well possible, but this application is pretty huge and is
already done, i am just optimizing it, i would want to get suggestions
considering webservices only.
let me know if you got one.

thanks

"Ken Cox - Microsoft MVP" wrote:
Remoting is an excellent way to transfer data efficiently. It doesn't have
the overhead of SOAP but it isn't as universal.

http://msdn.microsoft.com/library/de...ngoverview.asp

"sameer" <sa****@discussions.microsoft.com> wrote in message
news:F6**********************************@microsof t.com...
Ken , thanks for your reply,
nope, if not for compression it takes a long time, like if with
compression
it takes 1 minutes then without cmpression it takes 3-4 minutes. And there
really is not that much data in the dataset, so again i am trying to blame
XML tags for incresing the size of the data. So does any one out there
know a
better alternative to passing data over the webservice instead of passing
a
dataset.

thanks

"Ken Cox - Microsoft MVP" wrote:
Maybe the delay is caused by the compression or fetching the data rather
than the transmission size/time?
"sameer" <sa****@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
> Hi all,
>
> Application environment :
> VB.Net desktop application,.NET 1.1 Framework, VS 2003.
> communicates between the database and the application is done over
> webservices using ADO.NEt Datasets.
> Returned dataset is Gzip compressed and is then decompressed on the
> receiving side.
>
> Every thing works good, the problem is that it takes a lot of time for
> the
> webservice to return my data filled dataset even if there is not much
> data, i
> thnk the reson being 1. serilization of dataset is expensive 2. datset
> is
> all
> XML and so even XML tags add to the space as well. Even though this is
> all
> compressed but even then it is taking long and their always is room for
> improvment, can any one out there tell me
> the best strategy for trasferring the data over the webservice i.e
> should
> I
> replace the dataset with another object for transmiting it over the
> webservice OR is there any other way to make sure datasets are
> tranmitted
> faster.
>
> thanks
>
> Sameer
>


Feb 12 '06 #5
When you say GZip'd - do you mean in the transport protocol (i.e. your
[WebMethod] returns a DataSet), or are you explicitely serializing the
object to a GZip stream yourself? If the latter, this could be part of the
problem, as a: 1.1 DataSets have really bad binary serialization (i.e. it's
just the same xml written in binary...), plus the lack of MTOM means you
will be (base-64?) encoding the binary on top. Is this a possiblilty?

Marc
Feb 13 '06 #6
Marc, i am not explicity serializing it, also IIS 6.0 compresses the dataset
and all i do is uncompress it, this is only increasing the performance and
not decreasing it.
Any other Suggestions of transfering the data over webservices instead of
using a sending a data.

thanks.

"Marc Gravell" wrote:
When you say GZip'd - do you mean in the transport protocol (i.e. your
[WebMethod] returns a DataSet), or are you explicitely serializing the
object to a GZip stream yourself? If the latter, this could be part of the
problem, as a: 1.1 DataSets have really bad binary serialization (i.e. it's
just the same xml written in binary...), plus the lack of MTOM means you
will be (base-64?) encoding the binary on top. Is this a possiblilty?

Marc

Feb 13 '06 #7
OK, scratch that idea then... it was worth a shot.

Beyond that... my only real advice in this scanario is to minimise what you
are transferring... are there any columns with lots of text in them that the
client doesn't need? Do you really need all the rows or could you use
paging? That sort of thing.

Your original post doesn't give any indication of what sort of size /
complexity of DataSet we are talking about; if this is returning 15
DataTables (with complex relations) each with 40 columns and 10000 rows then
yes, it will take a while. If you genuinely need all of the data at the
client (and you can't cache it locally for whatever reason) then I'm not
sure there are many alternatives under 1.1 and [WebMethod].

If you were in 2.0, you could consider using a GZip'd binary serialization
of the dataset transferred via MTOM (WSE3) - this should (theoretically)
take a lot less bandwidth. But according to the original post, you're not.

<stumped/>

Marc
Feb 13 '06 #8

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

Similar topics

12
by: Jose Fernandez | last post by:
Hello. I'm building a web service and I get this error. NEWS.News.CoverNews(string)': not all code paths return a value This is the WebMethod public SqlDataReader CoverNews(string Sport)...
3
by: Trygve Lorentzen | last post by:
Hi, I don't know if this is a stupid question, but I observe that my webservice is created for each call to a webmethod. More precisely an instance of the webservice class is created for each...
4
by: Adrian Meyer | last post by:
Hi, On the server I code the following web service: ))] public XmlDataDocument GetTypedXmlDataDocument() { sqlDataAdapter1.Fill(typedDataSet1); XmlDataDocument dataDoc
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
0
by: Chertzy B | last post by:
Datasets in Whidbey (Beta 2) contain a namespace property suggesting that it is possible to web enable them. However, it seems very difficult to do this. Take the following scenario 3...
3
by: Nick Gilbert | last post by:
Hi, I have to send an array of prices for a list of products over XML. Currently my XML data looks like this: <ArrayOfProd> <Prod Code="productcode001"> <Prices> <P F="2005-01-01"...
2
by: Bala Nagarajan | last post by:
Hello, I am working with a webservice developed by my team some time back and found a problem with it. All the web service methods returned a dataset instead of a more generic object . Clearly...
1
by: rival | last post by:
Hi. I've a single solution with many projects. I'm using VS2003 and framework 1.1 1. Data project - contains UserData class, inheriting from DataSet, and setting up constants and columns...
2
by: Asim Qazi | last post by:
Hi All public class MyResponse { public bool m_bStatus; public string m_szErrorCode; public string m_szMessage; }
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
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,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.