Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2008

Tip: Looking for answers? Try searching our database.

Compress xml string transfer through webservice

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sel - 25 Mar 2008 23:13 GMT
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?

Thanks in advance!!!
Spam Catcher - 25 Mar 2008 23:25 GMT
>     In my application transferring large xml data over the network
>     with
[quoted text clipped - 6 lines]
>
> What i have to do,in what way i have to compress the xml string?

.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.

Signature

spamhoneypot@rogers.com (Do not e-mail)

Sel - 26 Mar 2008 01:00 GMT
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?

> >     In my application transferring large xml data over the network
> >     with
[quoted text clipped - 15 lines]
> If you need additional compression (i.e. application level), you'll need to
> write your own serialization/deserialization routines.
Spam Catcher - 26 Mar 2008 03:01 GMT
> 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?

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/

Signature

spamhoneypot@rogers.com (Do not e-mail)


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.