Mathieu Jondet > WebService-Eulerian-Analytics-0.8 > WebService::Eulerian::Analytics

Download:
WebService-Eulerian-Analytics-0.8.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.8   Source  

NAME ^

WebService::Eulerian::Analytics - Eulerian Analytics API

DESCRIPTION ^

This module handles the calls and responses sent to the different services provided by the WebService::Eulerian::Analytics modules. It's the parent class for all other modules and should not be used directly.

METHODS ^

new : constructor called by other modules

input

output

fault : indicates if the last call generated a fault on the server

input

output

faultdetails : returns a hash reference containing the details on the last generated fault

input

output

faultcode : returns the faultcode of the last generated fault

input

output

faultstring : returns the faultstring of the last generated fault

input

output

call : generic SOAP call method (private)

This method should not be called directly, use the main classes.

input

output

sample

        my $rh_return = $service->call('MyMethodName', 'param1', { hash => 'param2' }, [ 'param3' ]);
        #
        # test if the server generated a fault
        if ( $service->fault ) {
         # die on fault and display the faultstring
         die $service->faultstring();
        }
        #
        # no fault : process the returned structure
        use Data::Dumper;
        print Dumper($rh_return);

SEE ALSO ^

SOAP::Lite

AUTHOR ^

Mathieu Jondet <mathieu@eulerian.com>

COPYRIGHT ^

Copyright (c) 2008 Eulerian Technologies Ltd http://www.eulerian.com

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

syntax highlighting: