[OPEN-ILS-DEV] php client for openSRF

Lebbeous Fogle-Weekley lebbeous at esilibrary.com
Wed May 23 13:29:16 EDT 2012


Hi Pranjal!

What you need to have installed is the OpenSRF gateway.

Some of the language bindings for OpenSRF allow clients to talk to 
OpenSRF services by getting right on the Jabber Network (the C, Perl, 
Python and Java ones do this if memory serves).

But the Javascript API and this TADL PHP code communicate with OpenSRF 
services a little more indirectly, via the OpenSRF gateway, which 
provides an HTTP inlet to OpenSRF using Apache.  Using the gateway means 
that clients don't have to be within reach of the Jabber network 
underneath OpenSRF, which in turns gives sites a way to separate private 
services from public ones.

See examples/apache2/opensrf.conf in the OpenSRF source for more 
information.  Send any follow up questions here.

(To everyone else: if any of the above is not 100% correct, please 
correct me here!)

Thanks!

Lebbeous

On 05/23/2012 01:18 PM, Pranjal Prabhash wrote:
> Hello,
>
> I am trying to build a php client for openSRF. I tried editing the php
> scripts from: https://github.com/tadl/opensrf-php so that it adds two
> numbers, as mentioned in the code. What should be the url for $endpoint? It
> seems that I am committing a logical mistake.
>
> It will be very helpful if someone corrects the error. Thanks in advance.
>
> Regards,
> Pranjal
>


-- 
Lebbeous Fogle-Weekley
  | Software Developer
  | Equinox Software, Inc. / Your Library's Guide to Open Source
  | phone:  1-877-OPEN-ILS (673-6457)
  | email:  lebbeous at esilibrary.com
  | web:  http://www.esilibrary.com


More information about the Open-ils-dev mailing list