Groups | Blog | Home
all groups > dotnet web services > march 2008 >

dotnet web services : Compress xml string transfer through webservice


Sel
3/25/2008 3:13:01 PM
Hi
In my application transferring large xml data over the network with
webservice. So i decided to compress the data using GZip stream. But i am
compressed the data and passing it as memory stream.

I am getting error : There was an error in generating XML document.

When saop protocol serialize,it doesnt accept memory stream type.

What i have to do,in what way i have to compress the xml string?

Sel
3/25/2008 5:00:01 PM
Thanks for your reply,

I have IIS 5.0 + windows XP. Is compression available in IIS 5.0 ?

If so how to enable GZip compression feature in IIS 5.0?

[quoted text, click to view]
Spam Catcher
3/25/2008 10:25:40 PM
=?Utf-8?B?U2Vs?= <Sel@discussions.microsoft.com> wrote in
news:682B0764-D88F-4EE4-863D-37AF16B88327@microsoft.com:

[quoted text, click to view]

..NET 2.0 web services do not support IO streams. WCF however does have
streaming support (but not sure if you can use a compressed stream).

Nevertheless, you can enable GZIP compression in IIS, that should provide
you with some compression.

If you need additional compression (i.e. application level), you'll need to
write your own serialization/deserialization routines.

--
Spam Catcher
3/26/2008 2:01:32 AM
=?Utf-8?B?U2Vs?= <Sel@discussions.microsoft.com> wrote in
news:9AD6ECAD-6266-4530-A4D2-361E5A1C6B9F@microsoft.com:

[quoted text, click to view]

I believe you'll need IIS 6.0. It's a configuration option in one of the
panels.

In 5.0 you'll need to activate it through the registration or use Port 80'
Software's HTTPZIP to activate GZIP:

http://www.port80software.com/products/httpzip/



--
AddThis Social Bookmark Button