ePages 6.11.0 - DE_EPAGES/Amazon/API/SOAP/SOAPResponseHandler.pm

Package DE_EPAGES::Amazon::API::SOAP::SOAPResponseHandler

Amazon SOAP Response base class.

Functions

IsError
Result
handleSOAPError
handleSOAPResponse

IsError

sets or gets error status

Syntax
$Object->IsError(1);
$Object->IsError
Example
$Object->IsError(1);
if ($Object->IsError ) {}
Input
$Input (boolean)
iserror
Return
(boolean)
$IsError

Result

Description

Syntax
$Object->Result( $Input );
Example
$Result = $Object->Result();
$Object->Result( ExampleData );
Input
$Input (object)
Amazon DTO object
Return
$Result (object)
Amazon DTO object

handleSOAPError

Analyzes SOM Tree for Faults and dies on existance of an error

Syntax
$Result = $Object->handleSOAPError( $SOM );
Example
$Result = $Object->handleSOAPError( $soap->call() );
Input
$SOM (SOM Tree)
SOAP::Lite return structure
Return
(null)
none

handleSOAPResponse

dummy handler supposed to be overwritten by child classes, sets result data

Syntax
$Object->handleSOAPResponse( $Input );
Example
$Object->handleSOAPResponse( ExampleData );
Input
$som (object)
SOM tree
Return
(null)
none