AwGateway - A SOAP Gateway into ActiveWorks Event Space
use SOAP::Lite +autodispatch => uri => 'activeworks://myAwBroker:MyClientGroup@my.active.host:7449', proxy => 'http://my.proxy.server/soap/', on_fault => sub { my($soap, $res) = @_; die ref $res ? $res->faultdetail : $soap->transport->status, "\n"; } ;
AwGateway provides a simple means to convert a SOAP request into an ActiveWorks event. AwGateway is also a light weight alternative to the more comprehensive SOAP::Transport::ActiveWorks::Lite module (which is not required). The AwGateway class provides a single method, relay, which must be passed a HASH reference that matches the structure of the ActiveWorks event type specified in the required '_event_type' field of the hash:
my %user =( # required! _event_type => "Ac::UserNameQueryRequest", _event_timeout => 150000, # optional strUserName => $ARGV[0], strISP => "some_isp.net", strFirstName => "John", strLastName => "Doe", strCustomerNumber => "7654321", );
my %reply = %{ AwGateway->SOAP::relay ( \%user ) } or die ( "User \"$user{strUserName}\" has no Account." );
Daniel Yacob, yacob@rcn.com
perl(1). SOAP::Lite(3). SOAP::Transport::ActiveWorks::Lite(3).
To install MyClient, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MyClient
CPAN shell
perl -MCPAN -e shell install MyClient
For more information on module installation, please visit the detailed CPAN module installation guide.