[dev] Re: [horde] Get info from XMLRPC server

Derek Colley derek at netsimple.net
Thu Apr 10 09:47:49 PDT 2003


Quoting René Lund Jensen <lundeman at tbkol.dk>:

> >>You don't have the xmlrpc extension in php.
> >
> > I'm running Mandrake 9.0 as a server.
> > I have found and installed:
> > - xmlrpc-epi-0.50-1.rpm and
> > - php-xmlrpc-4.2.3-9.rpm
> >
> > I have also tested the /horde/rpc.php with a Java client from my laptop to
> the
> > server and I get:
> >
> > <br/>
> > <b>Fatal error</b>:  Call to undefined function:  xmlrpc_server_create() in
> > <b>/var/www/html/horde/lib/RPC/xmlrpc.php</b> on line <b>36</b><br/>
> > <br/>
> > <b>Fatal error</b>:  Call to undefined function:  xmlrpc_server_destroy()
> in
> > <b>/var/www/html/horde/lib/RPC/xmlrpc.php</b> on line <b>48</b><br/>
> >
> > So php still can't find xmlrpc extensions?
> >
> > Do I have to re-compile php for this?
>
> What does phpinfo() tell you..??
>
> René
>

Thanks for the tip - I have just learned about "urpmi"... cool.

So, I have installed php-xmlrpc-4.2.3-1mdk.i586.rpm and
libxmlrpc0-0.51-2mdk.i586.rpm. That, and an apache restart seems to have
resolved the xmlrpc dependencies. Now, at the command line, I type:

# php rpc-test.php 0 derek <password>
X-Powered-By: PHP/4.2.3
Set-Cookie: webSYNC=55da347a2eea932cf4b8c5a5e767f27a; path=/horde;
domain=localhost
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1

===error======
s

==============


I have tried calling the rpc.php from SAP Business Connector using soapRFC and I
get some success...

<?xml version="1.0" encoding="iso-8859-1"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:si="http://soapinterop.org/xsd" xmlns:ns6="http://testuri.org"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
 <system.listMethodsResponse>
  <SOAP-ENC:Array SOAP-ENC:arrayType="xsd:ur-type[93]">
   <xsd:string>system.listMethods</xsd:string>
   <xsd:string>system.methodHelp</xsd:string>
   <xsd:string>system.methodSignature</xsd:string>
   <xsd:string>system.describeMethods</xsd:string>
   <xsd:string>system.multiCall</xsd:string>
   <xsd:string>system.getCapabilities</xsd:string>
   <xsd:string>horde.admin_list</xsd:string>
   <xsd:string>horde.deleteLink</xsd:string>
   <xsd:string>horde.listApps</xsd:string>
   <xsd:string>horde.listAPIs</xsd:string>
   <xsd:string>horde.block</xsd:string>
   <xsd:string>horde.blocks</xsd:string>
   <xsd:string>mail.authenticate</xsd:string>
   <xsd:string>mail.compose</xsd:string>
   <xsd:string>mail.folderlist</xsd:string>
   <xsd:string>mail.blacklistFrom</xsd:string>
   <xsd:string>mail.showBlacklist</xsd:string>
   <xsd:string>mail.showFilters</xsd:string>
   <xsd:string>mail.block</xsd:string>
   <xsd:string>mail.blocks</xsd:string>
   <xsd:string>forums.list</xsd:string>
   <xsd:string>forums.block</xsd:string>
   <xsd:string>forums.blocks</xsd:string>
   <xsd:string>contacts.import_vcard</xsd:string>
   <xsd:string>contacts.show</xsd:string>
   <xsd:string>contacts.followLink</xsd:string>
   <xsd:string>contacts.search</xsd:string>
   <xsd:string>contacts.add</xsd:string>
   <xsd:string>contacts.sources</xsd:string>
   <xsd:string>contacts.fields</xsd:string>
   <xsd:string>contacts.addField</xsd:string>
   <xsd:string>contacts.deleteField</xsd:string>
   <xsd:string>contacts.getField</xsd:string>
   <xsd:string>contacts.listField</xsd:string>
   <xsd:string>contacts.block</xsd:string>
   <xsd:string>contacts.blocks</xsd:string>
   <xsd:string>contacts.linkParameters</xsd:string>
   <xsd:string>contacts.getLinkDescription</xsd:string>
   <xsd:string>contacts.getLinkSummary</xsd:string>
   <xsd:string>contacts.addLink</xsd:string>
   <xsd:string>calendar.list</xsd:string>
   <xsd:string>calendar.listCalendars</xsd:string>
   <xsd:string>calendar.import_icalendar</xsd:string>
   <xsd:string>calendar.import_vevent</xsd:string>
   <xsd:string>calendar.export_vfreebusy</xsd:string>
   <xsd:string>calendar.show</xsd:string>
   <xsd:string>calendar.block</xsd:string>
   <xsd:string>calendar.blocks</xsd:string>
   <xsd:string>calendar.listCategories</xsd:string>
   <xsd:string>calendar.formatCategory</xsd:string>
   <xsd:string>notes.list</xsd:string>
   <xsd:string>notes.search</xsd:string>
   <xsd:string>notes.show</xsd:string>
   <xsd:string>notes.add</xsd:string>
   <xsd:string>notes.summary</xsd:string>
   <xsd:string>notes.block</xsd:string>
   <xsd:string>notes.blocks</xsd:string>
   <xsd:string>notes.listCategories</xsd:string>
   <xsd:string>notes.formatCategory</xsd:string>
   <xsd:string>tasks.list</xsd:string>
   <xsd:string>tasks.search</xsd:string>
   <xsd:string>tasks.show</xsd:string>
   <xsd:string>tasks.add</xsd:string>
   <xsd:string>tasks.block</xsd:string>
   <xsd:string>tasks.blocks</xsd:string>
   <xsd:string>tasks.linkParameters</xsd:string>
   <xsd:string>tasks.getLinkDescription</xsd:string>
   <xsd:string>tasks.getLinkSummary</xsd:string>
   <xsd:string>tasks.addLink</xsd:string>
   <xsd:string>tasks.followLink</xsd:string>
   <xsd:string>tasks.listCategories</xsd:string>
   <xsd:string>tasks.formatCategory</xsd:string>
   <xsd:string>projects.list</xsd:string>
   <xsd:string>projects.add</xsd:string>
   <xsd:string>projects.summary</xsd:string>
   <xsd:string>projects.get_assigned_ticket_ids</xsd:string>
   <xsd:string>projects.get_requested_ticket_ids</xsd:string>
   <xsd:string>projects.get_schema</xsd:string>
   <xsd:string>projects.add_tickets</xsd:string>
   <xsd:string>projects.set_ticket_attributes</xsd:string>
   <xsd:string>projects.query</xsd:string>
   <xsd:string>projects.admin_list</xsd:string>
   <xsd:string>projects.linkParameters</xsd:string>
   <xsd:string>projects.getLinkDescription</xsd:string>
   <xsd:string>projects.getLinkSummary</xsd:string>
   <xsd:string>projects.followLink</xsd:string>
   <xsd:string>projects.block</xsd:string>
   <xsd:string>projects.blocks</xsd:string>
   <xsd:string>polls.get_votable_polls</xsd:string>
   <xsd:string>polls.get_poll</xsd:string>
   <xsd:string>polls.summary</xsd:string>
   <xsd:string>polls.block</xsd:string>
   <xsd:string>polls.blocks</xsd:string>
  </SOAP-ENC:Array>
 </system.listMethodsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


------------------------------------------------------------
webMail supplied & supported by http://webmail.netsimple.net



More information about the dev mailing list