Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

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

cms.opengroupware.xmlrpc.devel

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

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
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.postgresql.b...    video.ffmpeg.us...    gis.qgis.devel/...    web.rdf.redland...    file-systems.oc...    recreation.rail...    systems.archos....    python.c++/2003...    lang.c--/2005-0...    multimedia.gpho...    network.unison....    editors.jedit.u...    hardware.pciids...    cms.tiki.cvs/20...    bug-tracking.ma...    java.hadoop.hba...    ietf.rsvp/2002-...    xfree86.devel/2...    qnx.openqnx.dev...    apache.labs.dev...    tex.pdftex/2008...    os.solaris.open...    user-groups.lin...    kde.koffice/200...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation