Re: How to is the correct syntax for xmlrpc on a bash shell

Adam Tauno Williams <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Organization Morrison Industries
Message-ID <1119032680.27077.10.camel@localhost>
> >>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:
> >I haven't used JOGI, but there is class documentation on the JOGI site.
> >I used their structure as the basis for POGI when I started writing
> >that.
> I think i got it a bit more code running now.
> {
>     String url="http://192.168.12.44: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();
>         ogo.getSystem().getServerTime();
>         conn.closeConnection();
>         System.exit(1);
>         AppointmentManager appMan = ogo.getAppointmentManager();
>         Date startDate = new Date(105, 6, 17, 12, 00);
>         Date endDate = new Date(105, 6, 17, 13, 00);
>         Appointment app = appMan.createAppointment(startDate, 
> endDate,"key:Iterator");
>         appMan.insert(app);
>     } catch (Exception e){
>         System.err.println("Connecting to OpenGroupwareServer not 
> possible: " + e.getMessage());
>     }       
> }
> Now i get an error:
> log4j:WARN No appenders could be found for logger 
> (org.opengroupware.jogi.connect.xmlrpc.ApacheXmlRpcCaller).
> log4j:WARN Please initialize the log4j system properly.
> I used the OgoClient.java as a template and derived the code above from 
> it. There is no log4j initialized nor imported. Does anyone know how to 
> initialize log4j properly for jogi?

I don't know anything about log4j,  but there is a JOGI client
application which is probably a good example of such things, called
JogiClient - I assume the source of which is included in the tar ball.

If you come up with any notes or snippets of example code you should
really (PLEASE!) sign up for an account on the docs plone and post them
there.   OGo is in serious need of some basic examples to get people off
the starting block.

-- 
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.