Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Authentication and Authorization for SOAP

by Ieronim (Friar)
on Jul 14, 2006 at 17:17 UTC ( #561275=note: print w/replies, xml ) Need Help??

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
    }