Re: dateTime.iso8601 format
Gaetano Giunta <[email protected]> Wed, 09 Jul 2008 09:28:55 +0200
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
...
> http://www.xmlrpc.com/spec <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?
Yes. As a matter of fact the datetime is underspecified in xmlrpc, as
you have a misnomer and a single example. The consensus is you are only
allowed to use the same format as given in the example.
> 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?
YMMV. My guess is most would still parse the full payload, but maybe not
parse correctly the datetime items.
...
> 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.
sure enough
...
> 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>?
empty string. undefined strings are not part of the spec. using
<value></value> also amounts to the same. But there is a proposed
extension for a <nil/> tag - some libs support it.
(http://ontosys.com/xml-rpc/extensions.php)
<int></int> is not valid. Conforming libs should refuse it.
of course, here too you could define your own meta-type for carrying the
"null" info, via eg. a struct (cumbersome) or some application-local
convention (not generic)
bye
Gaetano
[Non-text portions of this message have been removed]
------------------------------------
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/