Re: String compression

From: Dmitriy Lapshin [C# / .NET MVP] (x-code_at_no-spam-please.hotpop.com)
Date: 03/17/04


Date: Wed, 17 Mar 2004 15:54:31 +0200

I am not sure it is suitable in your case, but you can employ a ZIP library
(I am pretty sure there is even a free one written in C#) to compress the
string. But you should also change the Web service to make it decompress the
received data before processing them. Of course you can only compress the
data themselves, the SOAP envelope around the request should be left intact
as I am not aware of any Web Service extension allowing compressed SOAP
requests. This doesn't mean however such extension cannot exists, Web
Services are just not my primary speciality.

-- 
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"skg" <anonymous@discussions.microsoft.com> wrote in message
news:3EB5E255-4FCB-424D-AFF1-77AF4A9DD78F@microsoft.com...
> I'm looking for code on how to compress a (XML) string to send through a
WebService. Due to the size of the data we are sending it takes an
unacceptable amount of time to accomplish the task. If we can compress the
string into a string then we can speed up the task and make eveyone happy.


Relevant Pages

  • Re: String compression
    ... something that was basically a web service. ... We did it by building the XML message, zipping it, then base64 encoding the ... Then we embedded that base64-encoded string inside of a very simple ... In those days we had to compress to file and then operate on the file. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
    ... I've added the web service call directly to my Data binding method ... expected but not present in the security header of the incoming ... the username token to the message. ... protected override string AuthenticateToken(UsernameToken token) ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Attention Sean - question about CSI
    ... the best compression algorithm you have. ... It should compress very ... which compresses that string to a single bit. ... already there uncompressed, why would you want to uncompress it ...
    (talk.origins)
  • Re: Attention Sean - question about CSI
    ... the best compression algorithm you have. ... It should compress very ... which compresses that string to a single bit. ... from the binary code, and use it to decompress the data, then ...
    (talk.origins)
  • Re: Attention Sean - question about CSI
    ... or the same CSI as a string of the same length where the ... the best compression algorithm you have. ... It should compress very ... which compresses that string to a single bit. ...
    (talk.origins)