<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;?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 =&gt; 'https://api.escapia.com/EVRNService.svc?WSDL',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE =&gt; true,
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN =&gt; 'you_secret_login',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD =&gt; 'you_secret_password',
 * );
 * etc...
 */
require_once __DIR__ . '/vendor/autoload.php';
/**
 * Minimal options
 */
$options = array(
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL =&gt; 'https://api.escapia.com/EVRNService.svc?WSDL',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP =&gt; ClassMap::get(),
);
/**
 * Samples for Unit ServiceType
 */
$unit = new \ServiceType\Unit($options);
/**
 * Sample call for UnitDescriptiveInfo operation/method
 */
if ($unit-&gt;UnitDescriptiveInfo(new \StructType\EVRN_UnitDescriptiveInfoRQ()) !== false) {
    print_r($unit-&gt;getResult());
} else {
    print_r($unit-&gt;getLastError());
}
/**
 * Sample call for UnitSearch operation/method
 */
if ($unit-&gt;UnitSearch(new \StructType\EVRN_UnitSearchRQ()) !== false) {
    print_r($unit-&gt;getResult());
} else {
    print_r($unit-&gt;getLastError());
}
/**
 * Sample call for UnitCalendarAvail operation/method
 */
if ($unit-&gt;UnitCalendarAvail(new \StructType\EVRN_UnitCalendarAvailRQ()) !== false) {
    print_r($unit-&gt;getResult());
} else {
    print_r($unit-&gt;getLastError());
}
/**
 * Sample call for UnitStay operation/method
 */
if ($unit-&gt;UnitStay(new \StructType\EVRN_UnitStayRQ()) !== false) {
    print_r($unit-&gt;getResult());
} else {
    print_r($unit-&gt;getLastError());
}
/**
 * Sample call for UnitRes operation/method
 */
if ($unit-&gt;UnitRes(new \StructType\UnitResRequestType()) !== false) {
    print_r($unit-&gt;getResult());
} else {
    print_r($unit-&gt;getLastError());
}
/**
 * Sample call for UnitRead operation/method
 */
if ($unit-&gt;UnitRead(new \StructType\EVRN_UnitReadRQ()) !== false) {
    print_r($unit-&gt;getResult());
} else {
    print_r($unit-&gt;getLastError());
}
/**
 * Sample call for UnitInquiry operation/method
 */
if ($unit-&gt;UnitInquiry(new \StructType\EVRN_UnitInquiryRQ()) !== false) {
    print_r($unit-&gt;getResult());
} else {
    print_r($unit-&gt;getLastError());
}
/**
 * Sample call for UnitCalendarAvailBatch operation/method
 */
if ($unit-&gt;UnitCalendarAvailBatch(new \StructType\EVRN_UnitCalendarAvailBatchRQ()) !== false) {
    print_r($unit-&gt;getResult());
} else {
    print_r($unit-&gt;getLastError());
}
/**
 * Sample call for UnitHold operation/method
 */
if ($unit-&gt;UnitHold(new \StructType\EVRN_UnitHoldRQ()) !== false) {
    print_r($unit-&gt;getResult());
} else {
    print_r($unit-&gt;getLastError());
}
/**
 * Sample call for UnitCalendarAvailExtended operation/method
 */
if ($unit-&gt;UnitCalendarAvailExtended(new \StructType\EVRN_UnitCalendarAvailRQ()) !== false) {
    print_r($unit-&gt;getResult());
} else {
    print_r($unit-&gt;getLastError());
}
/**
 * Samples for Campaign ServiceType
 */
$campaign = new \ServiceType\Campaign($options);
/**
 * Sample call for Campaign operation/method
 */
if ($campaign-&gt;Campaign(new \StructType\EVRN_CampaignRQ()) !== false) {
    print_r($campaign-&gt;getResult());
} else {
    print_r($campaign-&gt;getLastError());
}
/**
 * Samples for Property ServiceType
 */
$property = new \ServiceType\Property($options);
/**
 * Sample call for PropertyManager operation/method
 */
if ($property-&gt;PropertyManager(new \StructType\EVRN_PropertyManagerRQ()) !== false) {
    print_r($property-&gt;getResult());
} else {
    print_r($property-&gt;getLastError());
}
/**
 * Samples for Reservation ServiceType
 */
$reservation = new \ServiceType\Reservation($options);
/**
 * Sample call for ReservationCancel operation/method
 */
if ($reservation-&gt;ReservationCancel(new \StructType\EVRN_ReservationCancelRQ()) !== false) {
    print_r($reservation-&gt;getResult());
} else {
    print_r($reservation-&gt;getLastError());
}
/**
 * Sample call for ReservationUpdate operation/method
 */
if ($reservation-&gt;ReservationUpdate(new \StructType\EVRN_ReservationUpdateRQ()) !== false) {
    print_r($reservation-&gt;getResult());
} else {
    print_r($reservation-&gt;getLastError());
}
/**
 * Samples for Booking ServiceType
 */
$booking = new \ServiceType\Booking($options);
/**
 * Sample call for BookingChannels operation/method
 */
if ($booking-&gt;BookingChannels(new \StructType\EVRN_BookingChannelsRQ()) !== false) {
    print_r($booking-&gt;getResult());
} else {
    print_r($booking-&gt;getLastError());
}
</pre></body></html>