[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

A critique of XML-RPC

  • From: John Cowan <cowan@l...>
  • To: xml-dev@i...
  • Date: Sat, 6 Feb 1999 23:33:16 -0500 (EST)

xml critique
I have read the XML-RPC specification
at http://www.scripting.com/frontier5/xml/code/rpc.html with great
interest.  I have the following issues with it:

1) There is no support for internationalization, despite the
support present in XML.  Since the MIME type is text/xml
(as opposed to application/xml), the character encoding is
US-ASCII unless overridden.  No mention is made of support for
character references like &#x2020; (DOUBLE DAGGER).

I would suggest supporting either "text/xml; charset='utf-8'".
In addition, the references to "ASCII" in the spec should be changed.

2) There is no support for integers longer than 32 bits.

I suggest allowing <int> values to be arbitrarily large, reserving
the <i4> tag for 32-bit signed values.  This would be an upward
compatible extension for senders; receivers would have to check
whether <int> data was in fact within the 32-bit signed range
if backward compatibility is desired.

3) Floats are fairly useless because no rules exist for setting limits.

I suggest that no receiver be allowed to reject a value which can be
represented in 32-bit IEEE floats: between 1e-149 and 1e104, positive
or negative, or zero.

4) The statement that "A string can be used to encode binary data"
cannot be true, because arbitrary binary data cannot appear in XML
documents: there is no way to represent bytes of value 0-8, 11-12, or
14-31.  This is only a documentation consideration, as the base64
element does allow the representation of arbitrary binary data.

5) The very limited fault struct means that more complex exceptions
such as Java, Python, or C++ support must be flattened into strings
for return to the client, even though XML-RPC has ways of encoding more
complex objects.

I suggest allowing a struct within a fault object.

-- 
John Cowan					cowan@c...
		e'osai ko sarji la lojban.

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.