- or download this
<Location /mod_soap>
SetHandler perl-script
PerlHandler Apache::SOAP
PerlSetVar dispatch_to "/usr/local/apache/lib/soap"
</Location>
- or download this
package Factory;
...
sub foo { 'foo' }
1;
- or download this
use strict;
...
my $object = $soap->instantiate('My::User','5')->result;
print Dumper $object;
- or download this
$VAR1 = bless( {
'artist' => 'Van Halen',
...
'id' => '5',
'year' => '1978'
}, 'My::User' );
- or download this
my $object = $soap->instantiate('My::User','5')->result;
print $object->foo();
# yields:
Can't locate object method "foo" via package "My::User" at ./instantia
+te.pl line 23.