<?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 => 'http://94.70.255.108:6500/WcfShippingDok/Shipping.svc?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 => 'http://94.70.255.108:6500/WcfShippingDok/Shipping.svc?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Do ServiceType
 */
$do = new \ServiceType\_Do($options);
/**
 * Sample call for DoWork operation/method
 */
if ($do->DoWork(new \StructType\DoWork()) !== false) {
    print_r($do->getResult());
} else {
    print_r($do->getLastError());
}
/**
 * Samples for Insert ServiceType
 */
$insert = new \ServiceType\Insert($options);
/**
 * Sample call for InsertVoucher operation/method
 */
if ($insert->InsertVoucher(new \StructType\InsertVoucher()) !== false) {
    print_r($insert->getResult());
} else {
    print_r($insert->getLastError());
}
/**
 * Samples for Get ServiceType
 */
$get = new \ServiceType\Get($options);
/**
 * Sample call for GetShipmentNumber operation/method
 */
if ($get->GetShipmentNumber(new \StructType\GetShipmentNumber()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVoucher operation/method
 */
if ($get->GetVoucher(new \StructType\GetVoucher()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVoucherMargins operation/method
 */
if ($get->GetVoucherMargins(new \StructType\GetVoucherMargins()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVoucherTracking operation/method
 */
if ($get->GetVoucherTracking(new \StructType\GetVoucherTracking()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVoucherTrackingLanguage operation/method
 */
if ($get->GetVoucherTrackingLanguage(new \StructType\GetVoucherTrackingLanguage()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVoucherTracking_Station operation/method
 */
if ($get->GetVoucherTracking_Station(new \StructType\GetVoucherTracking_Station()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVouchersTracking_By_TimePeriod operation/method
 */
if ($get->GetVouchersTracking_By_TimePeriod(new \StructType\GetVouchersTracking_By_TimePeriod()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVouchersTracking_By_TimePeriod2 operation/method
 */
if ($get->GetVouchersTracking_By_TimePeriod2(new \StructType\GetVouchersTracking_By_TimePeriod2()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVouchersTracking_By_ItemID operation/method
 */
if ($get->GetVouchersTracking_By_ItemID(new \StructType\GetVouchersTracking_By_ItemID()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVoucherTracking_By_ItemID operation/method
 */
if ($get->GetVoucherTracking_By_ItemID(new \StructType\GetVoucherTracking_By_ItemID()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVouchersXps operation/method
 */
if ($get->GetVouchersXps(new \StructType\GetVouchersXps()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVouchersXps_Url operation/method
 */
if ($get->GetVouchersXps_Url(new \StructType\GetVouchersXps_Url()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVouchersPdf operation/method
 */
if ($get->GetVouchersPdf(new \StructType\GetVouchersPdf()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVouchersPdf_Url operation/method
 */
if ($get->GetVouchersPdf_Url(new \StructType\GetVouchersPdf_Url()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVouchers_Str_Pdf_Url operation/method
 */
if ($get->GetVouchers_Str_Pdf_Url(new \StructType\GetVouchers_Str_Pdf_Url()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVouchersPdf2A4 operation/method
 */
if ($get->GetVouchersPdf2A4(new \StructType\GetVouchersPdf2A4()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVoucherPOD operation/method
 */
if ($get->GetVoucherPOD(new \StructType\GetVoucherPOD()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVoucherPDFA6Margins operation/method
 */
if ($get->GetVoucherPDFA6Margins(new \StructType\GetVoucherPDFA6Margins()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVoucherPDFMargins operation/method
 */
if ($get->GetVoucherPDFMargins(new \StructType\GetVoucherPDFMargins()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVoucherPDFA4Double operation/method
 */
if ($get->GetVoucherPDFA4Double(new \StructType\GetVoucherPDFA4Double()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Samples for Check ServiceType
 */
$check = new \ServiceType\Check($options);
/**
 * Sample call for CheckSpecials operation/method
 */
if ($check->CheckSpecials(new \StructType\CheckSpecials()) !== false) {
    print_r($check->getResult());
} else {
    print_r($check->getLastError());
}
/**
 * Samples for Cancel ServiceType
 */
$cancel = new \ServiceType\Cancel($options);
/**
 * Sample call for CancelVoucher operation/method
 */
if ($cancel->CancelVoucher(new \StructType\CancelVoucher()) !== false) {
    print_r($cancel->getResult());
} else {
    print_r($cancel->getLastError());
}
