<?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 first 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://shenandoahgrowers.appiantracking.com/tracking/DRTrackWebService.svc?singleWsdl',
 * \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://shenandoahgrowers.appiantracking.com/tracking/DRTrackWebService.svc?singleWsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Get ServiceType
 */
$get = new \ServiceType\Get($options);
/**
 * Sample call for GetAuthenticationToken operation/method
 */
if ($get->GetAuthenticationToken(new \StructType\GetAuthenticationToken()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetBranches operation/method
 */
if ($get->GetBranches(new \StructType\GetBranches()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetForms operation/method
 */
if ($get->GetForms(new \StructType\GetForms()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetRouteSummaryByPlannedStartDate operation/method
 */
if ($get->GetRouteSummaryByPlannedStartDate(new \StructType\GetRouteSummaryByPlannedStartDate()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetRouteDetailByPlannedStartDate operation/method
 */
if ($get->GetRouteDetailByPlannedStartDate(new \StructType\GetRouteDetailByPlannedStartDate()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetRouteDetailByModifiedDate operation/method
 */
if ($get->GetRouteDetailByModifiedDate(new \StructType\GetRouteDetailByModifiedDate()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetRouteDetailAndBranchIdByModifiedDate operation/method
 */
if ($get->GetRouteDetailAndBranchIdByModifiedDate(new \StructType\GetRouteDetailAndBranchIdByModifiedDate()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetRouteDetailByDateRange operation/method
 */
if ($get->GetRouteDetailByDateRange(new \StructType\GetRouteDetailByDateRange()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOrderDetailByDate operation/method
 */
if ($get->GetOrderDetailByDate(new \StructType\GetOrderDetailByDate()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOrderDetailByModifiedDate operation/method
 */
if ($get->GetOrderDetailByModifiedDate(new \StructType\GetOrderDetailByModifiedDate()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOrderDetailsByModifiedDateAndBranchIds operation/method
 */
if ($get->GetOrderDetailsByModifiedDateAndBranchIds(new \StructType\GetOrderDetailsByModifiedDateAndBranchIds()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetUserAndQuantityFields operation/method
 */
if ($get->GetUserAndQuantityFields(new \StructType\GetUserAndQuantityFields()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetAccountDetailsByBranch operation/method
 */
if ($get->GetAccountDetailsByBranch(new \StructType\GetAccountDetailsByBranch()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetAccountDetailsByModifiedDateAndBranch operation/method
 */
if ($get->GetAccountDetailsByModifiedDateAndBranch(new \StructType\GetAccountDetailsByModifiedDateAndBranch()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOrderDetailsByOrderIds operation/method
 */
if ($get->GetOrderDetailsByOrderIds(new \StructType\GetOrderDetailsByOrderIds()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOrderDetailsAndEventsByOrderIDs operation/method
 */
if ($get->GetOrderDetailsAndEventsByOrderIDs(new \StructType\GetOrderDetailsAndEventsByOrderIDs()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOrderEventsByTypeAndDate operation/method
 */
if ($get->GetOrderEventsByTypeAndDate(new \StructType\GetOrderEventsByTypeAndDate()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetMasterRoutes operation/method
 */
if ($get->GetMasterRoutes(new \StructType\GetMasterRoutes()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetTruckProfiles operation/method
 */
if ($get->GetTruckProfiles(new \StructType\GetTruckProfiles()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetMaxRouteDetailByBranchAndDispatchDate operation/method
 */
if ($get->GetMaxRouteDetailByBranchAndDispatchDate(new \StructType\GetMaxRouteDetailByBranchAndDispatchDate()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCostingRulesByBranch operation/method
 */
if ($get->GetCostingRulesByBranch(new \StructType\GetCostingRulesByBranch()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Samples for Import ServiceType
 */
$import = new \ServiceType\Import($options);
/**
 * Sample call for ImportActuals operation/method
 */
if ($import->ImportActuals(new \StructType\ImportActuals()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Sample call for ImportActualsFromMultipleBranches operation/method
 */
if ($import->ImportActualsFromMultipleBranches(new \StructType\ImportActualsFromMultipleBranches()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Sample call for ImportOrders operation/method
 */
if ($import->ImportOrders(new \StructType\ImportOrders()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Sample call for ImportExtractFile operation/method
 */
if ($import->ImportExtractFile(new \StructType\ImportExtractFile()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Sample call for ImportRoutes operation/method
 */
if ($import->ImportRoutes(new \StructType\ImportRoutes()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Sample call for ImportDrivers operation/method
 */
if ($import->ImportDrivers(new \StructType\ImportDrivers()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Sample call for ImportDevices operation/method
 */
if ($import->ImportDevices(new \StructType\ImportDevices()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Sample call for ImportAccounts operation/method
 */
if ($import->ImportAccounts(new \StructType\ImportAccounts()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Sample call for ImportBranches operation/method
 */
if ($import->ImportBranches(new \StructType\ImportBranches()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Sample call for ImportAssets operation/method
 */
if ($import->ImportAssets(new \StructType\ImportAssets()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Sample call for ImportCostingRules operation/method
 */
if ($import->ImportCostingRules(new \StructType\ImportCostingRules()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Samples for Build ServiceType
 */
$build = new \ServiceType\Build($options);
/**
 * Sample call for BuildRouteFromOrderIds operation/method
 */
if ($build->BuildRouteFromOrderIds(new \StructType\BuildRouteFromOrderIds()) !== false) {
    print_r($build->getResult());
} else {
    print_r($build->getLastError());
}
/**
 * Samples for Unload ServiceType
 */
$unload = new \ServiceType\Unload($options);
/**
 * Sample call for UnloadOrders operation/method
 */
if ($unload->UnloadOrders(new \StructType\UnloadOrders()) !== false) {
    print_r($unload->getResult());
} else {
    print_r($unload->getLastError());
}
/**
 * Samples for Add ServiceType
 */
$add = new \ServiceType\Add($options);
/**
 * Sample call for AddOrders operation/method
 */
if ($add->AddOrders(new \StructType\AddOrders()) !== false) {
    print_r($add->getResult());
} else {
    print_r($add->getLastError());
}
/**
 * Samples for Lock ServiceType
 */
$lock = new \ServiceType\Lock($options);
/**
 * Sample call for LockStops operation/method
 */
if ($lock->LockStops(new \StructType\LockStops()) !== false) {
    print_r($lock->getResult());
} else {
    print_r($lock->getLastError());
}
/**
 * Samples for Unlock ServiceType
 */
$unlock = new \ServiceType\Unlock($options);
/**
 * Sample call for UnlockStops operation/method
 */
if ($unlock->UnlockStops(new \StructType\UnlockStops()) !== false) {
    print_r($unlock->getResult());
} else {
    print_r($unlock->getLastError());
}
/**
 * Samples for Suggest ServiceType
 */
$suggest = new \ServiceType\Suggest($options);
/**
 * Sample call for SuggestRoutes operation/method
 */
if ($suggest->SuggestRoutes(new \StructType\SuggestRoutes()) !== false) {
    print_r($suggest->getResult());
} else {
    print_r($suggest->getLastError());
}
/**
 * Samples for Export ServiceType
 */
$export = new \ServiceType\Export($options);
/**
 * Sample call for ExportAccounts operation/method
 */
if ($export->ExportAccounts(new \StructType\ExportAccounts()) !== false) {
    print_r($export->getResult());
} else {
    print_r($export->getLastError());
}
/**
 * Samples for Change ServiceType
 */
$change = new \ServiceType\Change($options);
/**
 * Sample call for ChangeAccountFrequency operation/method
 */
if ($change->ChangeAccountFrequency(new \StructType\ChangeAccountFrequency()) !== false) {
    print_r($change->getResult());
} else {
    print_r($change->getLastError());
}
/**
 * Samples for Transfer ServiceType
 */
$transfer = new \ServiceType\Transfer($options);
/**
 * Sample call for TransferAssets operation/method
 */
if ($transfer->TransferAssets(new \StructType\TransferAssets()) !== false) {
    print_r($transfer->getResult());
} else {
    print_r($transfer->getLastError());
}
/**
 * Samples for Decommission ServiceType
 */
$decommission = new \ServiceType\Decommission($options);
/**
 * Sample call for DecommissionAssets operation/method
 */
if ($decommission->DecommissionAssets(new \StructType\DecommissionAssets()) !== false) {
    print_r($decommission->getResult());
} else {
    print_r($decommission->getLastError());
}
/**
 * Samples for Update ServiceType
 */
$update = new \ServiceType\Update($options);
/**
 * Sample call for UpdateAccountEmailEvents operation/method
 */
if ($update->UpdateAccountEmailEvents(new \StructType\UpdateAccountEmailEvents()) !== false) {
    print_r($update->getResult());
} else {
    print_r($update->getLastError());
}
