ePages 6.17.43 - DE_EPAGES/SEUR/API/SOAP/RemoteSEUR.pm

Package DE_EPAGES::SEUR::API::SOAP::RemoteSEUR

Functions

reportError
serviceCall
xmlReader
xmlWriter

reportError

It checks if SEUR web service answer was correct or not by returning a boolean value. Also, it logs appropriate information about the success or failure to the communications.log (if the reporting is activated).

Syntax
$self->reportError($answer, $trace);
Input
$asnwer (object)
SEUR web service request answer
$trace (object)
WSDL web service request error trace
Return
$bVal (boolean)
web service results had errors or not

serviceCall

Entry point for calling SEUR web services

Syntax
($answer, $trace) = $self->serviceCall( $service_method, $WSDL_Path_File, $request_parameters );
Input
$service_method (string)
SEUR service method
$wsdlPath (string)
SEUR WSDL configuration file path
$params (hash)
SEUR XML request parameters
Return
@call_result_array (Array)
Array with the resturned XML request answer and a
trace structure if XML call was wrong

xmlReader

It transforms XML string into corresponding Hash by using XSD schema.

Syntax
xmlReader($xmlString, $serviceName, $elementName);
Input
$xmlString (string)
XML string to transform
$serviceName (string)
identifies XSD schema
$elementName (string)
XML element to transform
Return
($isError,$xmlHash) (array)
array with error status and Hash representing XML

xmlWriter

It transforms XML string into corresponding Hash by using XSD schema.

Syntax
xmlWriter($xmlString, $serviceName, $elementName);
Input
$xmlString (string)
XML string to transform
$serviceName (string)
It identifies XSD schema
$elementName (string)
XML element to transform
Return
$xmlHash (hash ref.)
Hash representing XML