ePages 6.11.0 - DE_EPAGES/WebService/API/Client.pm

Package DE_EPAGES::WebService::API::Client

Loads the SOAP::Lite module and installs a universal error handler. Based on SOAP::Lite.

Example
use DE_EPAGES::WebService::API::Client;
my $soap = DE_EPAGES::WebService::API::Client
    ->uri('urn://epages.de/WebService/HelloService/2004/04')
    ->proxy('http://login:invalid@servername/epages/Site.soap');
my $result = eval { $soap->protected->result; };
print GetError()->message if ExistsError();

Functions

logCommunication
userinfo

logCommunication

Logs all SOAP communication in the code block.

Syntax
$Service->logCommunication( $Category, $Code );
Example
$Service->logCommunication( 'Ebay::RemoteEbay', sub {
    $Service->call( $method, $header, @params );
});
Input
$Category (string)
log category, undef for no logging
$Code (code ref)
code to be executed with debug information

userinfo

Sets the login and password for Basic Authentication.

Syntax
$Service = $Service->userinfo( "$Login:$Password" );
$UserInfo = $Service->userinfo;
Example
$Service->userinfo( "wurzel:geheim" );
my $Service = DE_EPAGES::WebService::API::Client->new
    ->proxy( 'http://localhost/epages/MyStore.soap' )
    ->userinfo( '/Users/wsadmin:wsadmin' );
Input
$Login (string)
login
$Password (string)
password
Return
$Service (object)
returns the web service object
$UserInfo (string)
login:password

Package DE_EPAGES::WebService::API::Client::Serializer