NAME
SOAP::Transport::ActiveWorks::HTTP::Proxy - Forward SOAP requests from an HTTP server to an ActiveWorks broker
SYNOPSIS
require SOAP::Transport::HTTP::Proxy;
my $s = SOAP::Transport::ActiveWorks::HTTP::Proxy->new();
$s->handle_request($http_method, $request_class,
$request_header_reader,
$request_content_reader,
$response_header_writer,
$response_content_writer,
$optional_dispatcher);
DESCRIPTION
SOAP::Transport::ActiveWorks::HTTP::Proxy provides a handler for use by SOAP::Transport::ActiveWorks::HTTP::Apache for forwarding requests to an ActiveWorks broker received via Apache or other HTTP server. The relationship between packages is identical to that of SOAP::Transport::::HTTP::Apache/Server.
See SOAP::Transport::ActiveWorks::HTTP::Apache for intended usage. The package also provides a subroutine for optional usage as dispatcher.
http_proxy
The subroutine http_proxy may be imported from the package to use with SOAP::Transport::HTTP::Apache directly as an optional_dispatcher. Optional dispatcher usage as shown below is valid with the version of SOAP::Transport::HTTP::Apache that comes with the SOAP-AutoInvoke package:
package Apache::SOAPServer;
use strict;
use Apache;
use SOAP::Transport::HTTP::Apache;
use SOAP::Transport::ActiveWorks::HTTP::Proxy qw( http_proxy );
sub handler {
my $safe_classes ={
ClassA => undef,
ClassB => undef,
Calculator => \&http_proxy,
};
SOAP::Transport::HTTP::Apache->handler($safe_classes);
}
DEPENDENCIES
SOAP::Defs
SOAP::Parser
SOAP::EnvelopeMaker
SOAP::Transport::ActiveWorks::Defs
AUTHOR
Daniel Yacob, yacob@rcn.com
SEE ALSO
perl(1). SOAP(3). SOAP::Transport::ActiveWorks::HTTP::Apache(3).