472,982 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 3511
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; }
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.