NAME

LS::SOAP::Service - SOAP service for LSID authority, metadata, and data operations

SYNOPSIS

DESCRIPTION

FAULTS

The LS::SOAP::Fault class is provided to aid in creating SOAP faults. In addition to the methods of SOAP::Fault, LS::SOAP::Fault provides get/set methods for an errorcode number and description string, which are placed in the fault details.

errorcode ( $num )

Sets or retrieves the numeric errorcode of the error.

description ( $desc_string )

Sets or retrieves a detailed, human readable description of the error.

Examples:

 sub getAvailablesServices {
        my $self = shift;
        my ($lsid_string) = @_;

        if (!known(LS::ID->new($lsid_string))) {
                die LS::SOAP::Fault->faultcode('Client')
                                   ->faultstring('Unknown LSID')
                                   ->errorcode(201)
                                   ->description(
                                        'The LSID ' . 
                                        $lsid_string . 
                                        ' is not known to this authority.'
                                     );
        }

        return "<wsdl></wsdl>";
 }