NAME
Hessian::Client - RPC via Hessian with a remote server.
SYNOPSIS
use Hessian::Client;
my $client = Hessian::Client->new(
version => 1,
service => 'http://some.hessian.service/.....'
);
# Alternatively
my $client = Hessian::Client->new(
version => 2,
service => 'http://some.hessian.service/.....'
);
# RPC
my $response = $hessian->remoteCall($arg1, $arg2, $arg3, ...);
DESCRIPTION
The goal of Hessian::Client and all associated classes in this namespace is to provide support for communication via the Hessian protocol in Perl. For a more detailed introduction into the Hessian protocol, see the main project documentation for http://hessian.caucho.com/doc/hessian-ws.html and http://www.caucho.com/resin-3.0/protocols/hessian-2.0-spec.xtp.
Hessian::Client implements basic RPC for Hessian. Although currently only tested with version 1, communication with version 2.0 servers should also work. I am currently looking for publicly available or otherwise accesible Hessian services for testing.
INTERFACE
new
- Arguments
-
- version
-
1
or2
representing the respective version of Hessian the client should speak. - service
-
A url representing the location of a Hessian server.
BUILD
Not part of the public interface. See Class::Std documentation.
AUTOMETHOD
Not part of the public interface. See Class::Std documentation.
Note: Any method called on the client that is not defined in the public interface (so anything other than "new") will be processed into a Hessian call and posted to the service.
TODO
Testing with a Hessian 2.0 service. If anyone out there would be interested in helping with this I would be very grateful.
Work on messaging. RPC is only part of the Hessian protocol.
Make a POE filter for this perhaps.