Re: zOGI - putObject response contains an empty value
Adam Tauno Williams <[email protected]> Sun, 13 Jul 2008 11:12:13 -0400
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
> When I'm trying to use putObject with a Contact, all I'm getting as a > response is this: > <?xml version="1.0"?> > <methodResponse> > <params>On Sun, 2008-07-13 at 15:38 +0100, [email protected] wrote: Hi all, > > > <param> > <value/> > </param> > </params> > </methodResponse> That is pretty wierd; are you attempting to update a contact or create a new contact? The first thing I'd check is that you are specifying the "entityName" attribute and spelling it correctly. That is the most likely cause for something like this as zOGI wouldn't know what to do with the data. > In /var/log/opengroupware/*1.5-err.log all I'm getting is the "Unknown > WebClient..." error message. That is harmless, it just means SOPE doesn't recognize the user-agent string in your HTTP request. > Yet the updates in the Contact are not being applied. That makes sense, I'm pretty sure that zOGI is failing to process the provided struct. The processing of a struct is based on the objectId and entityName. entityName drives it to the appropriate patch (Contact, Enterprise, etc...) and objectId [0 or not 0] determines if it is a create or update operation. > If I do a getObject > and then immediately a putObject, the response contains the entire struct. That also makes sense and it guarantees you have a valid entityName and objectId. So long as the response to the putObject has bumped the version attribute it is working. > What is the meaning of the empty value? Is there some way to debug zOGI? You can enable the zOGIDebugEnabled and it might tell you more. -- OpenGroupware.org XML-RPC [email protected] http://mail.opengroupware.org/mailman/listinfo/xmlrpc