Package DE_EPAGES::ShopConfiguration::API::WebService::ShopConfigService12
Provides web service access to create and delete shops
Example |
use DE_EPAGES::WebService::API::Client; my $ShopConfigService = DE_EPAGES::WebService::API::Client ->uri('urn://epages.de/WebService/ShopConfigService/2017/11') ->proxy("http://localhost:80/epages/Site.soap"); $ShopConfigService->userinfo( "/Providers/$ProviderAlias/Users/$Login:$Password" ); $ShopConfigService->delete({ Alias => 'Store.DemoShop' }); |
Functions
create
Creates a new shop within the given database on behalf of the current provider. The new shop is given the feature set of the specified shop type. A given shop address and name are set as well. Initial shop data are imported from import file(s). These import files must be pre-configured corresponding to the shop's feature set. Some example import files are located in the directory %EPAGES_CARTRIDGES%/DE_EPAGES/DemoShop/Database/XML.
Syntax |
$ShopID = $ShopConfigService->create({ ShopType => $ShopType, Database => $Database, Alias => $Alias, ShopAlias => $ShopAlias, IsClosed => $IsClosed, DomainName => $DomainName, HasSSLCertificate => $HasSSLCertificate, WebServerScriptNamePart => $WebServerScriptNamePart, IsTrialShop => $IsTrialShop, IsInternalTestShop => $IsInternalTestShop, ImportFiles => $aImportFiles, PublicFilesDir => $PublicFilesDir, MerchantEMail => $MerchantEMail, ShopAddress_FirstName => $FirstName, ShopAddress_LastName => $LastName, ShopAddress_CountryID => $CountryID, ShopAddress_Street => $Street, ShopAddress_Zipcode => $Zipcode, ShopAddress_City => $City, ShopAddress_State => $State, Name => $Name, })->result; |
Example |
my $ShopID = $ShopConfigService->create({ ShopType => 'ECommerce100', Database => 'Store', Alias => 'DemoShop', ShopAlias => 'DemoShop', IsClosed => 0, DomainName => 'www.myshop.biz', HasSSLCertificate => 1, WebServerScriptNamePart => 'demoshop', IsTrialShop => 0, IsInternalTestShop => 0, ImportFiles => [ '\\Server\Shared\Distributor\CommonData.xml', '\\Server\Shared\Distributor\ExampleProducts.xml', '\\Server\Shared\Distributor\Styles.xml', ], PublicFilesDir => '\\Server\Shared\Distributor\ShopImages', MerchantEMail => 'hab@ich.net', ShopAddress_FirstName => 'Max', ShopAddress_LastName => 'Mustermann', ShopAddress_CountryID => '276', ShopAddress_Street => 'Heinrich-Heine-Straße 1', ShopAddress_Zipcode => '07749', ShopAddress_City => 'Jena', ShopAddress_State => 'TH', Name => 'Milestones', })->result; |
Input |
|
Return |
|
new
Creates a new web service object as a blessed hash reference and adds the values from the %Options hash.
Syntax |
$Service = DE_EPAGES::ShopConfiguration::API::WebService::ShopConfigService12->new( %Options ); |
Input |
|
Return |
|
update
Updates a shop by changing the shop type, setting the status, address, name or importing data from XML files.
Syntax |
$ShopConfigService->update({ Alias => $Alias, ShopType => $ShopType, IsClosed => $IsClosed, DomainName => $DomainName, HasSSLCertificate => $HasSSLCertificate, WebServerScriptNamePart => $WebServerScriptNamePart, IsTrialShop => $IsTrialShop, IsInternalTestShop => $IsInternalTestShop, ImportFiles => $ImportFiles, MerchantEMail => $MerchantEMail, ShopAddress_FirstName => $FirstName, ShopAddress_LastName => $LastName, ShopAddress_CountryID => $CountryID, ShopAddress_Street => $Street, ShopAddress_Zipcode => $Zipcode, ShopAddress_City => $City, ShopAddress_State => $State, Name => $Name, }); |
Input |
|