<?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 => 'https://sxpappuat.radixxuat.com/SXP/radixx.connectpoint/ConnectPoint.TravelAgents.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 => 'https://sxpappuat.radixxuat.com/SXP/radixx.connectpoint/ConnectPoint.TravelAgents.svc?singleWsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Retrieve ServiceType
 */
$retrieve = new \ServiceType\Retrieve($options);
/**
 * Sample call for RetrieveAgencyDetails operation/method
 */
if ($retrieve->RetrieveAgencyDetails(new \StructType\RetrieveAgencyDetails()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveAvailableCredit operation/method
 */
if ($retrieve->RetrieveAvailableCredit(new \StructType\RetrieveAvailableCredit()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveAvailableAgencyCredit operation/method
 */
if ($retrieve->RetrieveAvailableAgencyCredit(new \StructType\RetrieveAvailableAgencyCredit()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveTravelAgencyPNRList operation/method
 */
if ($retrieve->RetrieveTravelAgencyPNRList(new \StructType\RetrieveTravelAgencyPNRList()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveAgencyCommission operation/method
 */
if ($retrieve->RetrieveAgencyCommission(new \StructType\RetrieveAgencyCommission()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveAgencyInfo operation/method
 */
if ($retrieve->RetrieveAgencyInfo(new \StructType\RetrieveAgencyInfo()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveAgencyList operation/method
 */
if ($retrieve->RetrieveAgencyList(new \StructType\RetrieveAgencyList()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveAgentList operation/method
 */
if ($retrieve->RetrieveAgentList(new \StructType\RetrieveAgentList()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveDisruptedAgencyPNRList operation/method
 */
if ($retrieve->RetrieveDisruptedAgencyPNRList(new \StructType\RetrieveDisruptedAgencyPNRList()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveAgencywithCCInfo operation/method
 */
if ($retrieve->RetrieveAgencywithCCInfo(new \StructType\RetrieveAgencywithCCInfo()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveAgentDetails operation/method
 */
if ($retrieve->RetrieveAgentDetails(new \StructType\RetrieveAgentDetails()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveCommissionDashboardInfo operation/method
 */
if ($retrieve->RetrieveCommissionDashboardInfo(new \StructType\RetrieveCommissionDashboardInfo()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveTransactionDashboardInfo operation/method
 */
if ($retrieve->RetrieveTransactionDashboardInfo(new \StructType\RetrieveTransactionDashboardInfo()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveBalanceDashboardInfo operation/method
 */
if ($retrieve->RetrieveBalanceDashboardInfo(new \StructType\RetrieveBalanceDashboardInfo()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveBookingHistory operation/method
 */
if ($retrieve->RetrieveBookingHistory(new \StructType\RetrieveBookingHistory()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveCumulativeBalance operation/method
 */
if ($retrieve->RetrieveCumulativeBalance(new \StructType\RetrieveCumulativeBalance()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveCreditLimitHistory operation/method
 */
if ($retrieve->RetrieveCreditLimitHistory(new \StructType\RetrieveCreditLimitHistory()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveFinanceAgents operation/method
 */
if ($retrieve->RetrieveFinanceAgents(new \StructType\RetrieveFinanceAgents()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveSubAgencies operation/method
 */
if ($retrieve->RetrieveSubAgencies(new \StructType\RetrieveSubAgencies()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveDistributorDetails operation/method
 */
if ($retrieve->RetrieveDistributorDetails(new \StructType\RetrieveDistributorDetails()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveChangedTAData operation/method
 */
if ($retrieve->RetrieveChangedTAData(new \StructType\RetrieveChangedTAData()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveAgencyIncentiveReport operation/method
 */
if ($retrieve->RetrieveAgencyIncentiveReport(new \StructType\RetrieveAgencyIncentiveReport()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveAgencyPNR operation/method
 */
if ($retrieve->RetrieveAgencyPNR(new \StructType\RetrieveAgencyPNR()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Sample call for RetrieveBookingsWithPaymentsPending operation/method
 */
if ($retrieve->RetrieveBookingsWithPaymentsPending(new \StructType\RetrieveBookingsWithPaymentsPending()) !== false) {
    print_r($retrieve->getResult());
} else {
    print_r($retrieve->getLastError());
}
/**
 * Samples for Login ServiceType
 */
$login = new \ServiceType\Login($options);
/**
 * Sample call for LoginTravelAgent operation/method
 */
if ($login->LoginTravelAgent(new \StructType\LoginTravelAgent()) !== false) {
    print_r($login->getResult());
} else {
    print_r($login->getLastError());
}
/**
 * Sample call for LoginTravelAgentSingleSignOn operation/method
 */
if ($login->LoginTravelAgentSingleSignOn(new \StructType\LoginTravelAgentSingleSignOn()) !== false) {
    print_r($login->getResult());
} else {
    print_r($login->getLastError());
}
/**
 * Samples for Modify ServiceType
 */
$modify = new \ServiceType\Modify($options);
/**
 * Sample call for ModifyAgencyCreditLimit operation/method
 */
if ($modify->ModifyAgencyCreditLimit(new \StructType\ModifyAgencyCreditLimit()) !== false) {
    print_r($modify->getResult());
} else {
    print_r($modify->getLastError());
}
/**
 * Sample call for ModifyAgency operation/method
 */
if ($modify->ModifyAgency(new \StructType\ModifyAgency()) !== false) {
    print_r($modify->getResult());
} else {
    print_r($modify->getLastError());
}
/**
 * Sample call for ModifyAgent operation/method
 */
if ($modify->ModifyAgent(new \StructType\ModifyAgent()) !== false) {
    print_r($modify->getResult());
} else {
    print_r($modify->getLastError());
}
/**
 * Samples for Create ServiceType
 */
$create = new \ServiceType\Create($options);
/**
 * Sample call for CreateAgency operation/method
 */
if ($create->CreateAgency(new \StructType\CreateAgency()) !== false) {
    print_r($create->getResult());
} else {
    print_r($create->getLastError());
}
/**
 * Sample call for CreateAgent operation/method
 */
if ($create->CreateAgent(new \StructType\CreateAgent()) !== false) {
    print_r($create->getResult());
} else {
    print_r($create->getLastError());
}
/**
 * Samples for Move ServiceType
 */
$move = new \ServiceType\Move($options);
/**
 * Sample call for MoveAgencySessionDataToNewSecurityToken operation/method
 */
if ($move->MoveAgencySessionDataToNewSecurityToken(new \StructType\MoveAgencySessionDataToNewSecurityToken()) !== false) {
    print_r($move->getResult());
} else {
    print_r($move->getLastError());
}
/**
 * Samples for Associate ServiceType
 */
$associate = new \ServiceType\Associate($options);
/**
 * Sample call for AssociateToReservation operation/method
 */
if ($associate->AssociateToReservation(new \StructType\AssociateToReservation()) !== false) {
    print_r($associate->getResult());
} else {
    print_r($associate->getLastError());
}
/**
 * Samples for Update ServiceType
 */
$update = new \ServiceType\Update($options);
/**
 * Sample call for UpdateTopUpDetails operation/method
 */
if ($update->UpdateTopUpDetails(new \StructType\UpdateTopUpDetails()) !== false) {
    print_r($update->getResult());
} else {
    print_r($update->getLastError());
}
/**
 * Samples for Agency ServiceType
 */
$agency = new \ServiceType\Agency($options);
/**
 * Sample call for AgencyFundsTransfer operation/method
 */
if ($agency->AgencyFundsTransfer(new \StructType\AgencyFundsTransfer()) !== false) {
    print_r($agency->getResult());
} else {
    print_r($agency->getLastError());
}
