Help for this page

Select Code to Download


  1. or download this
    <Location /mod_soap>
       SetHandler perl-script
       PerlHandler Apache::SOAP
       PerlSetVar dispatch_to "/usr/local/apache/lib/soap"
    </Location>
    
  2. or download this
    package Factory;
    
    ...
    sub foo { 'foo' }
    
    1;
    
  3. or download this
    use strict;
    
    ...
    my $object = $soap->instantiate('My::User','5')->result;
    
    print Dumper $object;
    
  4. or download this
    $VAR1 = bless( {
                     'artist' => 'Van Halen',
    ...
                     'id' => '5',
                     'year' => '1978'
                   }, 'My::User' );
    
  5. 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.