NAME

SOAP::Autoload - Automarshall methods for Perl SOAP

SYNOPSIS

#!/usr/bin/perl -w

#
#  Client example that goes with server example in SOAP::Autounload
#

use strict;

package Calculator;
use base qw( SOAP::Autoload );


package main;

my $calc = new Calculator;


print "sum = ", $calc->add ( 1, 2, 3 ), "\n";

DESCRIPTION

The intention of SOAP::Autoload is to allow a SOAP client to use a remote class as if it were local. The remote package is treated as local with a declaration like:

package MyClass;
use base qw( SOAP::Autoload );

The SOAP::Autoload base class will "Autoload" methods called from an instance of "MyClass", send it to the server side, and return the results to the caller's space.

Provided Methods

new

The 'new' method may be called with option arguments to reset variables from the defaults.

my $class = new MyClass (
                host       => 'anywhere.com',
                port       => 80,
                endpoint   => 'soapx?class=OtherClass',
                method_uri => 'urn:com-name-your'
            );

It is advisable to set the package defaults at installation time in the SOAP/Autoload.pm (this) file. The variables may also be reset after instantiation with the 'set' methods.

getHost

returns the contents of $class->{host}.

setHost

sets the contents of $class->{host}.

getPort

returns the contents of $class->{port}.

setPort

sets the contents of $class->{port}.

getEndPoint

returns the contents of $class->{endpoint}.

setEndPoint

sets the contents of $class->{endpoint}.

getMethodURI

returns the contents of $class->{method_uri}.

setMethodURI

sets the contents of $class->{method_uri}.

DEPENDENCIES

SOAP-0.28 Data::Dumper

AUTHOR

Daniel Yacob, yacob@rcn.com

SEE ALSO

perl(1). SOAP(3). SOAP::Autounload(3).

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 259:

'=item' outside of any '=over'

Around line 309:

You forgot a '=back' before '=head1'