> -----Original Message-----
> From: Roger B. [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 19, 2005 10:04 AM
> To: CF-Talk
> Subject: Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)
>
> Jim: Any reason not to go with the prior art and just use (or extend,
> if necessary) XML-RPC?
>
> XML-RPC parsers are everywhere, so it's pretty much the no-brainer
> default option for passing around programmatic data. In fact, that was
> one of the big points made when Jeremy Allaire and I were discussing
> his idea of embedding raw data in RSS feeds a couple years ago... not
> only is it more lightweight than WDDX or SOAP, there's virtually no
> language or environment that doesn't already support it. That kind of
> ubiquity is hard to ignore.
Okay - I've added XML-RPC data support to my JS serializer extensions. But
although the system does seem to be well supported it also seems to be
poorly documented. ;^)
Right now I'm only creating object-to-string serializers so my solution
doesn't actually implement the full method call - it just creates a single
the "<data>" tag from any JS object.
Some questions, if you have the time:
+) The system doesn't support explicit nulls (which is fine) but how should
a serializer react to them? I can see at least a few ways for handing this:
- Convert a null into an empty value: <value></value>.
- Convert a null into an empty string: <string></string>.
- Throw an error.
I've assumed the first solution (which I think should work across
implementations) but it seems odd that this is left the impelementation.
+) The date format for an implementation is sketchy. I've made the
assumption that dates will be serialized into UTC dates (with the specified
trailing "Z") but I see than other implementations either use local time or
don't use the trailing Z to indicate UTC.
Any idea about what's "right"?
+) String formatting seems... odd. The spec claims that only ampersands and
less-than signs should be escaped - is this right? Not even greater-than
signs? Nothing for control characters?
That's about it...
Anyway I've added the serializer to the JS stuff I've been doing and
provided examples and source code here:
http://www.depressedpress.com/DepressedPress/Test/
If you have some time I'd much appreciate you going over my XMLRPC
implementation to see if it measures up.
Jim Davis
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215843
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54