Re: How to is the correct syntax for xmlrpc on a bash shell
Henning Burow <[email protected]>
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
as you told me, that i cannot use xmlrpc from shell, i'm right now
trying to use it from java. I found the project ogo-jogi, which i
supposed to write appointments via xmlrpc. I need to know, which methods
i have to call, to write a singe appointment. My approach is for now:
public class Xmlconnect {
{
String url="http://localhost:22000/RPC2";
String user="root";
String password="hidden";
try {
XmlRpcCaller caller = new ApacheXmlRpcCaller(url, user, password);
XmlRpcConnection conn = new XmlRpcConnection(caller);
OpenGroupWare ogo = conn.getOpenGroupWareInstance();
} catch (Exception e){
System.err.println("Connecting to OpenGroupwareServer not
possible: " + e.getMessage());
}
Appointment app = new Appointment();
}
As you can see, i have no idea how to use the AppointmentManager. Maybe
someone can give me some insights
Thanks,
Henning
Helge Hess schrieb:
> On 16. Jun 2005, at 16:08 Uhr, Henning Burow wrote:
>
>> i want to use xmlrpc in a bash shell. How is the correct syntax for
>> a call, like inserting an appointment.
>
>
> You can't in the shell. xmlrpc_call only works with flat arguments,
> not with structures.
>
> Its probably easiest to do the call in a Python script.
>
>> xmlrpc_call http://localhost:22000/RPC2 appointment.insert
>> ('2005-06-17 12:00:00','2005-06-27 13:00:00','XML Test')
>>
>> That command doesn't work, and there is no manpage for xmlrpc_call.
>
>
> ?:
> ---snip---
> helge@groove$ xmlrpc_call
> usage: /Users/helge/GNUstep/Tools/xmlrpc_call <url> [<method-
> name>] [<arg1>,...]
> sample: /Users/helge/GNUstep/Tools/xmlrpc_call http://localhost:
> 20000/RPC2 bc 1 2
> ---snap---
>
> You can find a reference for XML-RPC calls somewhere on docs.
>
> Helge
--
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc