[OGo-Users] xmlrpc_call troubles

Adam Tauno Williams users@opengroupware.org
Sat, 20 Oct 2007 12:25:39 -0400


> http://www.opengroupware.org/en/devs/resources/xmlrpc/xmlrpc_call.html
> Result:
> xmlrpc_call http://localhost:20000/RPC2                          
> <<0x0x6e52f8[HandleCredentialsClient]>>D Note: got HTML response: <0x0x72c388[WOResponse]: status=200 headers={
>     "content-length" = 5029;
>     "content-type" = "text/html; charset=iso-8859-1";
> } content-size=5029>
> Exception caught
> Name  : XmlRpcCallFailed
> Reason: got HTML response

Thats because your calling the WebUI, and not the xml-rpc daemon.  Each
services [ webui, xml-rpc, zidestore ] listens on a different IP port.
Anyway,  you shouldn't address the services by port anyway.  ALL access
to ALL the OpenGroupware services via Apache.  You should be able to
access the service via http://localhost/RPC2

In you apache config you should have any entry like:
<IfModule ngobjweb_module.c>
  <LocationMatch ^/RPC2*>
    SetAppPort 22000
    SetHandler ngobjweb-adaptor
  </LocationMatch>
</IfModule>

> Also tried the tips in the xml-rpc-de.pdf for Python:
> e.g page 30
> server = Server(url, login=. password...") 
> does not work according to the python docs something along thies lines
> should do the job:
>  import xmlrpclib
> >>> server = xmlrpclib.Server("http://user:password@localhost:2000/x/xmlrpc")
> >>> server

Yep, Python changed since the document was written.

> Is that a bug? A misconfiguration or something else?

Mis-config, and double check that you have the ogo-xmlrpcd daemon
running.

Anyway if you want to use XML-RPC I'd recommend the zOGI API over the
one provided by the ogo-xmlrpcd daemon.  zOGI provides XML-RPC via
ZideStore.
http://code.google.com/p/zogi/wiki/Root