Re: XML-RPC Java Call

Helge Hess <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
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
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.