Skip to search.
jabber-rpc

Group Information

  • Members: 27
  • Category: Protocols
  • Founded: Aug 23, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

  Messages Help
Advanced
yay! interop starts here   Message List  
Reply Message #37 of 1183 |
I should be doing other things, but I've been setting up a public
Jabber-RPC responder, and HTTPgate, on our machine, so people can
test against it (more on that in another post later) and I couldn't
resist trying it out.

From my laptop (cicero) downstairs, I ran a Jabber-RPC client that
connected itself to a Jabber server on my gateway (qmacro), and sent
a Jabber-RPC request via the HTTPgate on our public host (gnu)
gateway to validator.userland.com's HTTP-based XML-RPC responder, and
called a couple of getState* procedures ... successfully!

For the interested, here are a few relevant snippets:

use Jabber::RPC::Client;
my $client = new Jabber::RPC::Client(
server => 'qmacro.xxxxx.xxx',
identauth => 'dj:secret',
)

$client->endpoint
('jrpchttp.gnu.xxxxx.xxx/http://validator.userland.com:80/RPC2');

$result = $client->call('examples.getStateStruct',
{ state1 => 18, state2 => 27, state3 => 48 } );
print "getStateStruct: ", $result || $client->lastfault, "\n";

$result = $client->call('examples.getStateName', 1);
print "getStateName: ", $result || $client->lastfault, "\n";



[dj@cicero examples]$ ./jrpc-requester.pl
getStateStruct: Louisiana,Nebraska,West Virginia
getStateName: Alabama
[dj@cicero examples]$


(I've only xxxx'd out the server names 'cos I'm not quite ready with
the public testing service yet)

cheerio for now

dj







Thu Aug 30, 2001 8:37 am

dj.adams@...
Send Email Send Email

Message #37 of 1183 |
Expand Messages Author Sort by Date

I should be doing other things, but I've been setting up a public Jabber-RPC responder, and HTTPgate, on our machine, so people can test against it (more on...
dj.adams@... Send Email Aug 30, 2001
8:37 am

hi all; I scratched away the x's and tested this with my Python jabber lib. It worked ;) heres the output; mallum@ape:~/Projects/jabberpy/examples$ ./jrpc.py...
mallum
yahoo@... Send Email
Aug 30, 2001
1:04 pm

No one else responded to Piers question, so I will. After installing and playing with Jabber:RPC:HTTP-Gate, I think it would be good to use this same model...
Richard Braman
richbraman@... Send Email
Sep 12, 2001
4:48 pm

... How about <jabber://agent@host/rpc-server> ? ... Since this question seems pretty open-ended, I'd like to jump in with a few thoughts. One of the things...
Lennon Day-Reynolds
lennon@... Send Email
Sep 12, 2001
9:34 pm

Hi Richard - how are you trying to use JECL? Have you tried Jabber::JAX::Component ( found at http://www.pipetree.com/jabber/ - follow the links )? To build...
Piers Harding
piers@... Send Email
Sep 13, 2001
9:02 am

... Perhaps I'm splitting hairs or misinterpreting, but there's a difference between using the same /gateway/ (Piers's suggestion) and the same /gateway model/...
DJ Adams
dj.adams@... Send Email
Oct 15, 2001
8:14 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help