Re: String compression

From: J.Marsch (jeremy_at_ctcdeveloper.com)
Date: 03/17/04


Date: Wed, 17 Mar 2004 10:45:27 -0600

Before WebServices were around, (and before VS.net), we had to put together
something that was basically a (pre-spec) web service. that is, we had to
post an xml string to a web server to invoke an action on the server that
involved posting a lot of data to a database.

We did it by building the XML message, zipping it, then base64 encoding the
zip. Then we embedded that base64-encoded string inside of a very simple
XML envelope. I wouldnt' bother for small messages, but if you're sending,
for example, a 1 meg collection of rows, it can be useful.

In those days we had to compress to file and then operate on the file.
However, I beleive that there are some .Net compression libraries (DynaZip,
for one) that support in-memory stream compression.

The downer is that with today's "real" web services, I would imagine that
you lose the automatic proxy generation and such -- that compressed, encoded
XML blob probably only looks like a string to WSDL.

"skg" <anonymous@discussions.microsoft.com> wrote in message
news:AD8D6DAB-EBB8-4A84-9A98-DB85533CB836@microsoft.com...
> Can someone point me to some code (that functions) on how to compress
strings in C#. We need this to speed up out WebServices/MessageQueue
applications and so far what little code we found has not worked. A URL
would do nicely. Thanks.



Relevant Pages

  • Consume Web Service...
    ... to call a web service in my orchestration. ... Xml parameters as string datatypes and processes this Xml and returns ... ignoreCommit, XMessage msg) ...
    (microsoft.public.biztalk.general)
  • Re: how to return xml document from a web service
    ... public string MyMethod ... it out in SOAP Xml so ensure the clients have a way of knowing to decode it ... > I can't tell if the consumer of the web service will use .Net or maybe ... > XmlDocument webservice method ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Problems in transferring XML
    ... How can I compress XML using a compression algoritm? ... Is it after saving the XML string to a file and then zip it? ...
    (comp.text.xml)
  • Re: serialising parameters manually
    ... You'll be a better Web service developer if you ... You can find lots of more information on controlling the Xml ... >> Can anyone tell me how to serialise an arraylist manually? ... >> would be to serialise the objects to a string, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Converting a Schema message to a string message and vice-versa
    ... public string Process ... conforms to a schema. ... drop an xml file into, and Biztalk pass this xml to the web method ... per the schema defined by my web service and a Send port and Send ...
    (microsoft.public.biztalk.general)

Loading