all groups > dotnet web services > january 2008 >
You're in the

dotnet web services

group:

Tweeking webservice to produce small XML representation if dataset


Tweeking webservice to produce small XML representation if dataset DC
1/17/2008 9:08:27 AM
dotnet web services:
Hi,

the xml my webservice is rather verbose. One simple tweak was setting
the table name to "T" (while it was "Table1" by default) which saves
nicely since the function easily returns 5000 rows. But there is more
redundant stuff, one row now looks like:

<T diffgr:id="T4998" msdata:rowOrder="4997"
diffgr:hasChanges="inserted">
<ID>17439274</ID>
</T>

Can I compact this somehow? I am only into tweaking the data produced
for every single row.

TIA for any hints,
Regards
Re: Tweeking webservice to produce small XML representation if dataset Spam Catcher
1/17/2008 5:16:52 PM
DC <dc@upsize.de> wrote in news:8f259675-330f-4ca1-9e3a-
2d654c34767a@e23g2000prf.googlegroups.com:

[quoted text, click to view]

Don't use a dataset :-) Datasets are .NET proprietary and not standard W3C
web service compliant.

In II6 you can enable GZIP compression, that'll shrink your data transfers
down considerably.

--
Re: Tweeking webservice to produce small XML representation if dataset DC
1/18/2008 12:25:17 AM
[quoted text, click to view]

Thank you, I suspected something like that. It would be good to get
rid of the (in my case) useless diffgr:hasChanges="inserted" attribute
which repeats per row = 140 KB per request with 5000 rows. But if that
is not possible... maybe GZip helps.

We are transferring a DataSet since an CLR stored procedure is
listening on the other end but maybe it is wiser to have the stored
proc unpack a more compact format. I am thankful for any additional
exchange of experience.

Regards
AddThis Social Bookmark Button