On Aug 18, 2004, at 0:32, Christoph Guse wrote:
i want to write my diploma thesis about Macromedia Flex and
OpenGroupware. Further information can be found on
http://guse.conquer.de .
Interesting idea! I'm curious to see how an OGo Flash interface would
look like :-)
In order to provide Ogo Data to Macromedia Flex i want to use Java and
XML-RPC. Today i managed to configure the Ogo server properly, so
simple XML-RPC calls work fine. But i'm not able to execute a more
complex call like person.fetch, because i'm not able to give over the
complex argument. The example i found in the xml-rpc-de.pfd is for
python.
The Python code actually maps almost 1:1 to the actual XML-RPC
structures, so I guess its probably the best way to see how those are
constructed.
Eg if you have something like this in Python:
persons.fetch( { 'name': 'abc', 'phones': ( 1, 2, 3) } );
The "{" mark dictionaries, the "(" arrays. So the XML-RPC struct for
that would be something like:
<struct>
<name>name</name>
<value>abc</value>
<name>phones</name>
<value><array><value>1</value><value>2</value><value>3</value></value>
</struct>
(I think I'm wrong with some tag names ;-)
You can also discover the actual XML-RPC transmissions done by either
Python or JOGI by starting the XML-RPC Server with the
-WOHttpAdaptor_LogStream YES
argument. This will dump all HTTP traffic.
Let us know if you need further help!
Greets,
Helge
--
http://docs.opengroupware.org/Members/helge/
OpenGroupware.org
--
OpenGroupware.org XML-RPC
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|