diff options
author | ivan <ivan> | 2010-06-16 07:50:17 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-06-16 07:50:17 +0000 |
commit | 0275abc52827599c9d1ee028cf88e1eb30473948 (patch) | |
tree | 5960d7b75a1b5dd4688f33798d412f6fe82fcfbe /fs_selfservice | |
parent | e37126c4d8a3eea4d27c855733a77cba026565c4 (diff) |
start of a local XML-RPC server for ncic, RT#7780
Diffstat (limited to 'fs_selfservice')
-rwxr-xr-x | fs_selfservice/perl/xmlrpc_local-phonenum_balance.pl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/fs_selfservice/perl/xmlrpc_local-phonenum_balance.pl b/fs_selfservice/perl/xmlrpc_local-phonenum_balance.pl new file mode 100755 index 000000000..8cbb5b0f0 --- /dev/null +++ b/fs_selfservice/perl/xmlrpc_local-phonenum_balance.pl @@ -0,0 +1,22 @@ +#!/usr/bin/perl + +use strict; +use Frontier::Client; +use Data::Dumper; + +my $phonenum = shift @ARGV; + +my $server = new Frontier::Client ( + url => 'http://localhost:8080/selfservice/xmlrpc.cgi', +); + +my $result = $server->call('FS.ClientAPI_XMLRPC.phonenum_balance', + 'phonenum' => $server->string($phonenum), # '3615588197', +); + +#print Dumper($result); +die $result->{'error'} if $result->{'error'}; + +warn Dumper($result); + +1; |