Re: zogi - birthDate attribute of Contact

[email protected] Mon, 9 Jun 2008 14:08:17 +0100
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
I can see that that does sound like the clean solution.  However, it may 
make more work for me.  My toolset does not have a xml-rpc binding, so I'm 
just parsing out whole structs and then replacing the xml node values when 
they have changed on the client (hence the problem if the output struct 
format varies from the input struct format). 

At the moment I'm just assuming that zOGI outputs the array members of a 
struct in a deterministic order each time (certainly seems to).  I'm not 
entirely happy doing it this way (but at this stage of the development it 
is a quick solution), as it introduces a dependency.  I have designed part 
of a solution to identify nodes based on conditions other than their 
ordered position.

As my work is still in the early stages, I'm quite amenable to voting for 
the best solution even if it does mean more work for me later :-) Whatever 
happens, it looks to me like the output struct and the input struct are 
not going to be isomorphic.  Unless dates are output and input as strings.

Bernard








Re: [OGo-XML-RPC] zogi - birthDate attribute of Contact

Helge Hess 
to:
xmlrpc
09/06/2008 13:50


Sent by:
[email protected]
Please respond to xmlrpc






On 09.06.2008, at 14:37, [email protected] wrote:
> I'm not sure what to suggest.  As Helge intimates, using 1001-01-01 
> is a
> hack, but then probably any solution to this is going to be a hack. 
> What
> does OGO's original xml-rpc binding do with empty date values?

Good question, I think it would probably omit the value from the XML- 
RPC record. Which of course the obvious solution! After all its a 
record, null is not needed in this case anyways, just remove the 
birthday key.

Except for uploads, in this case it could be represented as an empty 
string, I would assume that a SOPE XML-RPC frontend deals well with 
other datatypes (-isNotEmpty etc). Don't know how zOGi is implemented.

Thanks,
   Helge
-- 
Helge Hess
http://www.helgehess.eu/
-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc




-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc