473,406 Members | 2,387 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,406 software developers and data experts.

Problems in transferring XML

Hi,
I'm developing a system uses SOAP took kit version 3. The XML is
transferred
between the server and the client.
We have noticed when transferring data using SOAP a considerable amount
of
time is spent on encoding decoding the XML string.

And in the text transferred strings like &, " gt;...etc are
repeated over and over again.
What would be the best ways to reduce this processing the amount of
data
transferred?
How can we overcome the repetition of these strings?

Any help would be greatly appreciated.
Regards,
Nadee

Sep 8 '06 #1
6 1894
What would be the best ways to reduce this processing the amount of
data transferred?
Well, the traditional solution is to put the XML thru standard data
compression algorithms (zip/unzip, for example) before sending it across
the wire. That will reduce repeated structure as well as repeated
strings, and is thus much more effective than just trying to compress
the text content.

The question of whether there should be a standardized compressed form
for XML comes up on a regular basis. Most past attempts have actually
not been much, if any, improvement over zip/unzip. Folks still play with
this periodically, and the W3C's still debating whether the concept
makes any sense or if it completely breaks the XML processing model.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Sep 8 '06 #2
Hi,

Thanks for your idea.
But still im not clear about the solution.
How can I compress XML using a compression algoritm?
Is it after saving the XML string to a file and then zip it? But in
that case how are we going to transfer the zipped file?
I tried to send the zipped file as a string but SOAP tool kit returned
and error saying the string contains some invalid characters.

Please advice.

Joe Kesselman wrote:
What would be the best ways to reduce this processing the amount of
data transferred?

Well, the traditional solution is to put the XML thru standard data
compression algorithms (zip/unzip, for example) before sending it across
the wire. That will reduce repeated structure as well as repeated
strings, and is thus much more effective than just trying to compress
the text content.

The question of whether there should be a standardized compressed form
for XML comes up on a regular basis. Most past attempts have actually
not been much, if any, improvement over zip/unzip. Folks still play with
this periodically, and the W3C's still debating whether the concept
makes any sense or if it completely breaks the XML processing model.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Sep 11 '06 #3
comp.text.xml wrote:
I tried to send the zipped file as a string but SOAP tool kit returned
and error saying the string contains some invalid characters.
I don't know which language you're working on, but you can probably get
an in-memory implementation of zip or a similar algorithm. Java comes
with one.

Zipped data uses all 256 byte values, including some which XML 1.0
doesn't like. You'll have to escape some characters, at least, and will
probably have to do a base-64 encoding, to include it in a SOAP message.
(There are recent proposals to allow enclosing arbitrary binary data
alongside the SOAP message.) Conversion to and from base-64 is also
available in off-the-shelf implementations.

>
Please advice.

Joe Kesselman wrote:
>>>What would be the best ways to reduce this processing the amount of
data transferred?

Well, the traditional solution is to put the XML thru standard data
compression algorithms (zip/unzip, for example) before sending it across
the wire. That will reduce repeated structure as well as repeated
strings, and is thus much more effective than just trying to compress
the text content.

The question of whether there should be a standardized compressed form
for XML comes up on a regular basis. Most past attempts have actually
not been much, if any, improvement over zip/unzip. Folks still play with
this periodically, and the W3C's still debating whether the concept
makes any sense or if it completely breaks the XML processing model.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry


--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Sep 11 '06 #4
Hi Joseph,

My application is written in VFP 9.
Best regards,
Nadee
Joseph Kesselman wrote:
comp.text.xml wrote:
I tried to send the zipped file as a string but SOAP tool kit returned
and error saying the string contains some invalid characters.

I don't know which language you're working on, but you can probably get
an in-memory implementation of zip or a similar algorithm. Java comes
with one.

Zipped data uses all 256 byte values, including some which XML 1.0
doesn't like. You'll have to escape some characters, at least, and will
probably have to do a base-64 encoding, to include it in a SOAP message.
(There are recent proposals to allow enclosing arbitrary binary data
alongside the SOAP message.) Conversion to and from base-64 is also
available in off-the-shelf implementations.


Please advice.

Joe Kesselman wrote:
>>What would be the best ways to reduce this processing the amount of
data transferred?

Well, the traditional solution is to put the XML thru standard data
compression algorithms (zip/unzip, for example) before sending it across
the wire. That will reduce repeated structure as well as repeated
strings, and is thus much more effective than just trying to compress
the text content.

The question of whether there should be a standardized compressed form
for XML comes up on a regular basis. Most past attempts have actually
not been much, if any, improvement over zip/unzip. Folks still play with
this periodically, and the W3C's still debating whether the concept
makes any sense or if it completely breaks the XML processing model.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry


--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Sep 12 '06 #5
My application is written in VFP 9.

Oh well. I'm completely unfamiliar with VFP, so my ability to advise you
is strictly limited to the architectural level.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Sep 12 '06 #6
Hi,

I mange to zip the data and get it into a string. But I get an error
when I pass this to the SOAP.
OLE IDispatch exception code 0 from Server: Server:XML Parser failed at
linenumber 1, lineposition 631, reason is: Illegal xml character.
HRESULT=0x80004005: Unspecified error
- Server:Loading the request into SoapReader failed.
HRESULT=0x80070057:
The parameter is incorrect.
- Server:One of the parameters supplied is invalid.
HRESULT=0x80070057: The
parameter is incorrect.
...

Im using the (encoding="Windows-1252"). Also tried to send this in a
CDATA section.
Both failed. Any ideas on this?
Best regards,
Nadee

Joseph Kesselman wrote:
comp.text.xml wrote:
I tried to send the zipped file as a string but SOAP tool kit returned
and error saying the string contains some invalid characters.

I don't know which language you're working on, but you can probably get
an in-memory implementation of zip or a similar algorithm. Java comes
with one.

Zipped data uses all 256 byte values, including some which XML 1.0
doesn't like. You'll have to escape some characters, at least, and will
probably have to do a base-64 encoding, to include it in a SOAP message.
(There are recent proposals to allow enclosing arbitrary binary data
alongside the SOAP message.) Conversion to and from base-64 is also
available in off-the-shelf implementations.


Please advice.

Joe Kesselman wrote:
>>What would be the best ways to reduce this processing the amount of
data transferred?

Well, the traditional solution is to put the XML thru standard data
compression algorithms (zip/unzip, for example) before sending it across
the wire. That will reduce repeated structure as well as repeated
strings, and is thus much more effective than just trying to compress
the text content.

The question of whether there should be a standardized compressed form
for XML comes up on a regular basis. Most past attempts have actually
not been much, if any, improvement over zip/unzip. Folks still play with
this periodically, and the W3C's still debating whether the concept
makes any sense or if it completely breaks the XML processing model.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry


--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Sep 13 '06 #7

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

Similar topics

3
by: Abby | last post by:
I have an application that is written in php/mysql on a Linux platform and need to transfer hosts. This is a session based application and I don't know a lot about php/Linux/mysql, but can get by....
1
by: r_burgess | last post by:
I am looking for some guidance on transferring data between two pages in my ASP.net Web app (intranet). I have a form that will have a button and a text box on it (among other controls of course)...
6
by: Ishbel Kargar | last post by:
I've bought a new laptop (running Windows XP home edition) to replace my old one (running Windows 98). I don't have cable connection between the two computers, so I've transferred most of the...
3
by: phong.lee | last post by:
Hello all, i'm new at this. I need some assistant in transferring data from excel to access. I created a macro that basically gather all the necessary data that i need to bring into access. I...
0
by: Peter | last post by:
On my main page I have a datagrid with a hyperlink column. As soon as I click on the hyperlink a detailed screen should appear where I collect the fields of the selected record. However, I have...
2
by: Mike | last post by:
1. For some reason after the session has ended and the authentication cookie has expired I'm not being redirected to the login page. Insted I'm be assigned a new authentication cookie? Anyone have...
15
by: http://www.visual-basic-data-mining.net/forum | last post by:
Does anyone have any idea how to transferring data from TextBox1 in form1 to textBox2 in form2..... That means after i fill in any data in textBox1 and click Next button... It will bring me to...
0
by: flynnguy | last post by:
I am trying to essentially fork a rsync process from my python script and I am having some issues with the forking part. My program basically checks to see if I need to transfer a file and if it...
1
by: Simon Dean | last post by:
Hi, I believe I have a website (I didn't do the original coding) which uses JavaScript to generate cookies. It's a shopping cart application called UCart I believe. The technologies...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.