473,385 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Compress XML.

How can I compress XML data trought php SoapClient function and soap-
server?

Oct 8 '07 #1
3 3613
The usual way to compress XML is just to put it through a standard
text-compression tool such as zip/gzip. That compresses both structure
and content very effectively. But that produces binary data, which would
have to be encoded (eg base-64 encoding) before it could be wrappered in
XML, and that encoding of course adds some space overhead back in.

I don't know of any other standard way of compressing a SOAP payload.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Oct 8 '07 #2
Actually, a better answer would be to embed the XML within the SOAP
envelope, compress the whole thing, send the binary, and decompress it
before trying to interpret the message as SOAP. But I don't know whether
any of the common SOAP tools would support that.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Oct 8 '07 #3
Cydrome Leader wrote:
Is there anything that isn't lame about xml?
Lots. If you're interested, websearch.

XML syntax is not intended to be terse. It's intended to be an
easily-toolable, easily-debuggable interchange format -- and has
succeeded well enough to kill off several binary interchange formats,
because in fact terseness is overrated for that set of tasks. XML has
served as a coalescence point for a whole bunch of useful technology
which was previously trapped in its own little non-interchangable corners.

If you're looking for a back-end data format, XML syntax isn't it...
though depending on your needs, the XML data model may be. See, for
example, the pureXML features in IBM's DB2 database product, which
directly express the XML Infoset -- that isn't just because XML is
trendy, it's because XML is *USEFUL* as a set of concepts.

XML is a tool. Not all tools suit all tasks. If it isn't the right tool
for your purposes, that's fine; some applications really do run in a
vaccuum and talk only to themselves, and for those XML is probably not
the right answer... unless they want the convenience of being able to
leverage other apps and existing libraries rather than reinventing some
of these wheels.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Oct 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tony | last post by:
Hello, Any assistance would be appreciated: As the subject suggests I am trying to gunzip files using the Compress::Zlib module. The following is basically the code that I am working with: ...
0
by: estevan | last post by:
Some questions... 1 I would like to use compress protocol I do this MYSQL* m = new MYSQL; m.option.compress = true; unsigned int Flag = 0; Flag = Flag | CLIENT_COMPRESS;
3
by: Edward | last post by:
Thanks to Bob Powel (http://www.bobpowell.net/onebit.htm) I'm able to compress an image. However, this method takes a long time to compress an image. Does anyone know a quicker way? (The images I...
2
by: Jean-Marc Blaise | last post by:
Hi, I get a SQL2009C when using the 'compress' option for backup, but the util_heap_sz does not blow if I do not use the 'compress' option. What is the overhead induced by the compress option in...
5
by: ad | last post by:
I used use SharpZipLib to compress files in disk. But now I want to compress stream into another stream in memory(the stream not associated with disk file) My pseudo is: Stream...
8
by: Jose L. Velazquez | last post by:
Hi all, I have made a webservice that returns an XML, but sometimes the connection is so slow and there is a lot of data to be returned. I would like to know if it is possible to send this data...
6
by: Champika Nirosh | last post by:
Hi, I have two machine where I needed to have a extended TCP/IP protocol to make the link between the two machines Mean,I need to write a application that compress every data the machine send...
6
by: Adriano | last post by:
Can anyone recommend a simple way to compress/decomress a String in .NET 1.1 ? I have a random string of 70 characters, the output from a DES3 encryption, and I wish to reduce the lengh of it, ...
5
by: zgh1970 | last post by:
Hi, Friends, default DB2 compression library. I am wondering if this option will have any new restriction on RESTORE in the following. (Can I used that backup imsage for restore at the...
4
by: Lennart | last post by:
I heard a rumor that compress is only availible in Enterprise Edition in 9.5, can anyone confirm/reject this rumor? /Lennart
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.