473,779 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Optimizing webservice call which are returning datasets

Hi all,

Application environment :
VB.Net desktop application,.NE T 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 3550
Maybe the delay is caused by the compression or fetching the data rather
than the transmission size/time?
"sameer" <sa****@discuss ions.microsoft. com> wrote in message
news:0B******** *************** ***********@mic rosoft.com...
Hi all,

Application environment :
VB.Net desktop application,.NE T 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****@discuss ions.microsoft. com> wrote in message
news:0B******** *************** ***********@mic rosoft.com...
Hi all,

Application environment :
VB.Net desktop application,.NE T 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****@discuss ions.microsoft. com> wrote in message
news:F6******** *************** ***********@mic rosoft.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****@discuss ions.microsoft. com> wrote in message
news:0B******** *************** ***********@mic rosoft.com...
> Hi all,
>
> Application environment :
> VB.Net desktop application,.NE T 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****@discuss ions.microsoft. com> wrote in message
news:F6******** *************** ***********@mic rosoft.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****@discuss ions.microsoft. com> wrote in message
news:0B******** *************** ***********@mic rosoft.com...
> Hi all,
>
> Application environment :
> VB.Net desktop application,.NE T 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
4132
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
2157
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 call. This makes the InitializeComponent() method run for each method call and seems to really slow things down. Can I keep the webservice object running after a method call? Trygve
4
8277
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
25604
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 compile. <WebMethod()> _ Public Function VerifySku(ByVal skus As XmlDataDocument) As DataSet Test program : Dim cartSet As DataSet cartSet = ws.VerifySku(cartSet)
0
224
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 projects in a solution WidgetWindows (a windows application) WidgetLibrary (a project containing datasets)
3
1807
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" T="2005-09-09" Q="10" V="27.50" />
2
2644
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 this is not the best way to develop a web service because it is so tightly coupled that only .NET clients can use it. The dataset returned by the web service has 1000's of records in it. My question is how can i map the records in dataset so it...
1
2929
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 like those found in the Duwamish 7 sample 2. WebServices project - wraps up business logic 3. C# winforms consumer connecting to the WebServices. This project has the data project as a reference.
2
1631
by: Asim Qazi | last post by:
Hi All public class MyResponse { public bool m_bStatus; public string m_szErrorCode; public string m_szMessage; }
0
9636
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9930
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
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 we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.