Re: dateTime.iso8601 format
Bill Moseley <[email protected]> Tue, 8 Jul 2008 21:48:01 -0700
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jul 09, 2008 at 02:30:32AM +0000, [email protected] wrote: > >Is it just the example given in the spec: > >... > >Or any iso8601 format? > > Just what's shown in the example. Which, oddly enough, isn't ISO 8601. > > >(indicating UTC). > > It's always UTC. http://www.xmlrpc.com/spec also says: Don't assume a timezone. It should be specified by the server in its documentation what assumptions it makes about timezones. So that means I leave off the "Z" and just document it's UTC? Are you aware of any client libraries that would care about the "Z" on the dateTime.iso8601 data type? I.e., fail to parse an XMLRPC payload if a "Z" was included? I've been using the RCP::XML Perl module on a server. It's handy because I just end up with a Perl data structure -- and for the response I can also just pass a data structure and it will create array, int, string, struct, etc. But, it currently can't figure out dateTime.iso8601 automatically. So, those can end up as strings if not forced to a dateTime.iso8601 data type. I suppose if I wanted to I could just document that some element is a String data type but that string represents a time stamp. (The Perl module actually has a way to force everything as a Sting data type, IIRC.) > That's the XML-RPC way -- easy to get right because there's so little > the protocol lets you express. Hum, on a related note. I was wondering today how to represent a NULL or undefined string vs. an empty string. So, for a stuct: <struct> <member> <name>foo</name> <value> <string></string> </value> </member> <struct> Is that an empty string or undefined/null string? What about <int></int>? Thanks, -- Bill Moseley [email protected] Sent from my iMutt ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/xml-rpc/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/xml-rpc/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/