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
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 |
|
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 |
|
Return |
|