B.3 The Apache Wrapper


Part of the overall SOAP support in the SOAP::Lite module is a wrapper to allow easy deployment of objects of the Apache-based HTTP transport class detailed earlier as location handlers under Apache with mod_perl :

B.3.1 Apache::SOAP

Inherits from: SOAP::Transport::HTTP::Apache .

This class defines only one method, handler , which is the name that mod_perl expects to find in a class defined as a location handler:

handler
 # In httpd.conf, within <Location>: PerlHandler Apache::SOAP 

Uses a single instance of an Apache::SOAP object (created at compile-time from the new method inherited from the superclass) to route the request contained in the Apache request record that gets passed in to the handler as the sole parameter. The configure method is called on the object (see the SOAP::Transport::HTTP::Apache section), followed by the superclass handler method.

The SOAP server in this case relies entirely on configuration by means of the DirConfig lines in the Apache configuration file.



Programming Web Services with Perl
Programming Web Services with Perl
ISBN: 0596002068
EAN: 2147483647
Year: 2000
Pages: 123

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net