<?php
/**
 * This file aims to show you how to use this generated package.
 * In addition, the goal is to show which methods are available and the fist needed parameter(s)
 * You have to use an associative array such as:
 * - the key must be a constant beginning with WSDL_ from AbstractSoapClientbase class each generated ServiceType class extends this class
 * - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
 * $options = array(
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://online.gls-croatia.com/webservices/soap_server.php?wsdl',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true,
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password',
 * );
 * etc....
 */
require_once __DIR__ . '/vendor/autoload.php';
/**
 * Minimal options
 */
$options = array(
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://online.gls-croatia.com/webservices/soap_server.php?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Printlabel ServiceType
 */
$printlabel = new \ServiceType\Printlabel($options);
/**
 * Sample call for printlabel operation/method
 */
if ($printlabel->printlabel($username, $password, $senderid, $sender_name, $sender_address, $sender_city, $sender_zipcode, $sender_country, $sender_contact, $sender_phone, $sender_email, $consig_name, $consig_address, $consig_city, $consig_zipcode, $consig_country, $consig_contact, $consig_phone, $consig_email, $pcount, $pickupdate, $content, $clientref, $codamount, $codref, $services, $printertemplate, $printit, $timestamp, $hash, $customlabel, $is_autoprint_pdfs) !== false) {
    print_r($printlabel->getResult());
} else {
    print_r($printlabel->getLastError());
}
/**
 * Samples for Deletelabels ServiceType
 */
$deletelabels = new \ServiceType\Deletelabels($options);
/**
 * Sample call for deletelabels operation/method
 */
if ($deletelabels->deletelabels($username, $password, $senderid, $pclids) !== false) {
    print_r($deletelabels->getResult());
} else {
    print_r($deletelabels->getLastError());
}
/**
 * Samples for Getglshash ServiceType
 */
$getglshash = new \ServiceType\Getglshash($options);
/**
 * Sample call for getglshash operation/method
 */
if ($getglshash->getglshash($username, $password, $senderid, $sender_name, $sender_address, $sender_city, $sender_zipcode, $sender_country, $sender_contact, $sender_phone, $sender_email, $consig_name, $consig_address, $consig_city, $consig_zipcode, $consig_country, $consig_contact, $consig_phone, $consig_email, $pcount, $pickupdate, $content, $clientref, $codamount, $codref) !== false) {
    print_r($getglshash->getResult());
} else {
    print_r($getglshash->getLastError());
}
/**
 * Samples for Preparelabels ServiceType
 */
$preparelabels = new \ServiceType\Preparelabels($options);
/**
 * Sample call for preparelabels operation/method
 */
if ($preparelabels->preparelabels($username, $password, $senderid, $data) !== false) {
    print_r($preparelabels->getResult());
} else {
    print_r($preparelabels->getLastError());
}
/**
 * Samples for Preparelabelsxml ServiceType
 */
$preparelabelsxml = new \ServiceType\Preparelabelsxml($options);
/**
 * Sample call for preparelabels_xml operation/method
 */
if ($preparelabelsxml->preparelabels_xml($username, $password, $senderid, $data) !== false) {
    print_r($preparelabelsxml->getResult());
} else {
    print_r($preparelabelsxml->getLastError());
}
/**
 * Samples for Deletelabelsxml ServiceType
 */
$deletelabelsxml = new \ServiceType\Deletelabelsxml($options);
/**
 * Sample call for deletelabels_xml operation/method
 */
if ($deletelabelsxml->deletelabels_xml($username, $password, $senderid, $data) !== false) {
    print_r($deletelabelsxml->getResult());
} else {
    print_r($deletelabelsxml->getLastError());
}
/**
 * Samples for Deletelabelsgzippedxml ServiceType
 */
$deletelabelsgzippedxml = new \ServiceType\Deletelabelsgzippedxml($options);
/**
 * Sample call for deletelabels_gzipped_xml operation/method
 */
if ($deletelabelsgzippedxml->deletelabels_gzipped_xml($username, $password, $senderid, $data) !== false) {
    print_r($deletelabelsgzippedxml->getResult());
} else {
    print_r($deletelabelsgzippedxml->getLastError());
}
/**
 * Samples for Preparelabelsgzippedxml ServiceType
 */
$preparelabelsgzippedxml = new \ServiceType\Preparelabelsgzippedxml($options);
/**
 * Sample call for preparelabels_gzipped_xml operation/method
 */
if ($preparelabelsgzippedxml->preparelabels_gzipped_xml($username, $password, $senderid, $data) !== false) {
    print_r($preparelabelsgzippedxml->getResult());
} else {
    print_r($preparelabelsgzippedxml->getLastError());
}
/**
 * Samples for Getprintedlabelsxml ServiceType
 */
$getprintedlabelsxml = new \ServiceType\Getprintedlabelsxml($options);
/**
 * Sample call for getprintedlabels_xml operation/method
 */
if ($getprintedlabelsxml->getprintedlabels_xml($username, $password, $senderid, $data, $printertemplate, $is_autoprint_pdfs) !== false) {
    print_r($getprintedlabelsxml->getResult());
} else {
    print_r($getprintedlabelsxml->getLastError());
}
/**
 * Samples for Getprintedlabelsgzippedxml ServiceType
 */
$getprintedlabelsgzippedxml = new \ServiceType\Getprintedlabelsgzippedxml($options);
/**
 * Sample call for getprintedlabels_gzipped_xml operation/method
 */
if ($getprintedlabelsgzippedxml->getprintedlabels_gzipped_xml($username, $password, $senderid, $data, $printertemplate, $is_autoprint_pdfs) !== false) {
    print_r($getprintedlabelsgzippedxml->getResult());
} else {
    print_r($getprintedlabelsgzippedxml->getLastError());
}
/**
 * Samples for Getprintedlabelszippedpdfs ServiceType
 */
$getprintedlabelszippedpdfs = new \ServiceType\Getprintedlabelszippedpdfs($options);
/**
 * Sample call for getprintedlabels_zipped_pdfs operation/method
 */
if ($getprintedlabelszippedpdfs->getprintedlabels_zipped_pdfs($username, $password, $senderid, $data, $printertemplate, $is_autoprint_pdfs) !== false) {
    print_r($getprintedlabelszippedpdfs->getResult());
} else {
    print_r($getprintedlabelszippedpdfs->getLastError());
}
/**
 * Samples for Modifycod ServiceType
 */
$modifycod = new \ServiceType\Modifycod($options);
/**
 * Sample call for modifycod operation/method
 */
if ($modifycod->modifycod($username, $password, $senderid, $pclid, $codamount, $email) !== false) {
    print_r($modifycod->getResult());
} else {
    print_r($modifycod->getLastError());
}
