Help for this page

Select Code to Download


  1. or download this
    my $result = SOAP::Lite
        -> uri('http://www.example.com/Protected')
        -> proxy('http://www.example.com/soap.cgi')
        -> fetchdata($name, $pass, @request)
        -> result;
    
  2. or download this
    package Protected;
    sub fetchdata {
    ...
        #check the $name and $pass and process @request
        # or send an response indicating authentication error
    }