ePages 6.17.40 - DE_EPAGES/Amazon/API/Object/MapperMWSProduct.pm

Package DE_EPAGES::Amazon::API::Object::MapperMWSProduct

Maps the MWSProduct webservice from Amazon to a data transfer object

Functions

initLibXML
my
new

initLibXML

checks if the incomming string is a xml and initiated LibXML

Syntax
my $LibXMLHandler = initLibXML( $XML );
Input
$XML (String)
a xml as a String
Return
$xpc (object)
a LibXML handler

my

maps between the Amazons service MWSProduct xml response and the epages DTO

Syntax
my $ListsOfDTOs = mapXMLToDTO( $XML, $ShopURL );
Input
$XML (String)
a xml as a String
$ShopURL (String)
the URL of the shop to build the Link to the Amazon product
Return
\@DTOList (hash_ref)
a list of DTOs

new

constructor for MWSProduct webservice. Can receice two xml namespaces If not it will use the default URLs.

Syntax
my $Object = new('http://standart/namespace/URL','http://amazon/namespace/URL');
Input
$stdNameSpace (String)
standart xml namespace
$ansNameSpace (String)
amazon xml namespace
Return
$self (object)
the Object