ePages 6.17.43 - DE_EPAGES/WebService/API/WebService/MetaService.pm

Package DE_EPAGES::WebService::API::WebService::MetaService

Provides meta information about installed web services.

Example
use DE_EPAGES::WebService::API::Client;
my $MetaService = DE_EPAGES::WebService::API::Client
    ->uri('urn://epages.de/WebService/MetaService/2015/11')
    ->proxy("http://%2fUsers%2f$Login:$Password\@localhost:8080/epages/Store.soap");
my $URI = $MetaService->getLatestWebServiceURI('ShopService')->result;

Functions

existsWebServiceMethod
getLatestWebServiceURI

existsWebServiceMethod

Checks if a web service (loaded by the given URI) can execute the given method. Useful if you don't know the exact version of the web service, e.g. during a patch.

Syntax
$MetaService->existsWebServiceMethod($URI, $Method);
Example
$MetaService->existsWebServiceMethod($ShopService->uri, 'registerUnity');
Input
$URI (string)
web service URI
$Method (string)
method alias
Return
$Exists (boolean)
if the method exists at the given web service

getLatestWebServiceURI

Founds the latest installed web service by the given alias. E.g. input 'ShopService' => result 'ShopService2' (as loaded object) input 'OrderService' => result 'OrderService12' (as loaded object)

Syntax
$MetaService->getLatestWebServiceURI($Alias);
Example
$MetaService->getLatestWebServiceURI('ShopService');
Input
$Alias (string)
web service alias without trailing number
Return
$WebService (object)
latest matching web service, otherwise undef