Jabber::RPC::HTTPgate

Jabber::RPC::HTTPgate is an HTTP gateway for Jabber-RPC / XML-RPC.
Download

Jabber::RPC::HTTPgate Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • DJ Adams
  • Publisher web site:
  • http://search.cpan.org/~qmacro/Jabber-RPC-HTTPgate-0.01/lib/Jabber/RPC/HTTPgate.pm

Jabber::RPC::HTTPgate Tags


Jabber::RPC::HTTPgate Description

Jabber::RPC::HTTPgate is an HTTP gateway for Jabber-RPC / XML-RPC. Jabber::RPC::HTTPgate is an HTTP gateway for Jabber-RPC / XML-RPC.SYNOPSIS use Jabber::RPC::HTTPgate; my $gw = new Jabber::RPC::HTTPgate( server => 'myserver.org:5701', identauth => 'jrpchttp.localhost:secret', httpcomp => 'http', ); $gw->start;Jabber::RPC::HTTPgate is an experimental gateway that provides a conduit service between 'traditional' (HTTP-transported) XML-RPC encoded requests/responses and Jabber-RPC (XML-RPC encoded requests/responses transported over Jabber).The idea is that you can start a gateway, that connects as a component to the backbone of a Jabber server, and it proxies Jabber-RPC to HTTP-based XML-RPC endpoints, and vice versa. That means that your Jabber-RPC client can not only make XML-RPC encoded calls to a Jabber-RPC endpoint but also to a 'traditional' HTTP-based XML-RPC endpoint. And it also means that your 'traditional' HTTP-based XML-RPC client can make XML-RPC encoded calls to a Jabber-RPC endpoint.Jabber -> HTTPWhen you create and start up a gateway, it listens for Jabber-RPC calls, just like a normal Jabber-RPC responder. On receipt of such a call, the gateway creates an HTTP request and sends this request on to the HTTP-based XML-RPC endpoint. The response received back from this HTTP call is relayed back to the original Jabber-RPC requester.While a Jabber-RPC endpoint address is a Jabber ID (JID), an traditional XML-RPC endpoint address is a URL. So all the Jabber-RPC client needs to do is specify the URL in the resource part of the gateway's endpoint JID.HTTP -> JabberAs well as listening for Jabber-RPC calls, a gateway will also service incoming HTTP requests that can be made to the HTTP component that this gateway uses. The HTTP component (called simply 'http') can be downloaded from the normal Jabber software repository.On receipt of an HTTP request (passed to it by the HTTP component), the gateway creates a Jabber-RPC request containing the XML-RPC encoded payload, and sends it on to the Jabber-RPC responder endpoint. This endpoint is identified (via a JID) by the path part of the URL used in the call by the traditional client. Requirements: · Perl


Jabber::RPC::HTTPgate Related Software