Re: Problems in transferring XML
- From: "comp.text.xml" <nadeera@xxxxxxxxx>
- Date: 13 Sep 2006 07:38:27 -0700
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
.
- References:
- Problems in transferring XML
- From: comp.text.xml
- Re: Problems in transferring XML
- From: Joe Kesselman
- Re: Problems in transferring XML
- From: comp.text.xml
- Re: Problems in transferring XML
- From: Joseph Kesselman
- Problems in transferring XML
- Prev by Date: XPath transformation
- Next by Date: Re: DOCBOOK document is broken
- Previous by thread: Re: Problems in transferring XML
- Next by thread: Can xquery return a whole document sans a subsection?
- Index(es):
Relevant Pages
|