Advertisement
Guest User

Richard Quadling

a guest
Jun 15th, 2010
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 10.24 KB | None | 0 0
  1. <?php
  2. class TourSearch {
  3.   public $agencyCode; // string
  4.   public $cityCode; // string
  5.   public $date; // string
  6.   public $tourTypeName; // string
  7.   public $noOfPax; // string
  8. }
  9.  
  10. class TourSearchResponse {
  11.   public $TourSearchResult; // TourSearchResult
  12. }
  13.  
  14. class TourSearchResult {
  15.   public $any; // <anyXML>
  16. }
  17.  
  18. class GetHotelOrCruisePrices {
  19.   public $HotelData; // string
  20. }
  21.  
  22. class GetHotelOrCruisePricesResponse {
  23.   public $GetHotelOrCruisePricesResult; // GetHotelOrCruisePricesResult
  24. }
  25.  
  26. class GetHotelOrCruisePricesResult {
  27.   public $any; // <anyXML>
  28. }
  29.  
  30. class GetHotelSupplements {
  31.   public $HotelCode; // string
  32.   public $DateFrom; // dateTime
  33.   public $DateTo; // dateTime
  34. }
  35.  
  36. class GetHotelSupplementsResponse {
  37.   public $GetHotelSupplementsResult; // GetHotelSupplementsResult
  38. }
  39.  
  40. class GetHotelSupplementsResult {
  41.   public $any; // <anyXML>
  42. }
  43.  
  44. class GetTransferPrices {
  45.   public $Agency; // string
  46.   public $CityFromCode; // string
  47.   public $CityToCode; // string
  48.   public $HotelFromCode; // string
  49.   public $HotelToCode; // string
  50.   public $PortFromCode; // string
  51.   public $PortToCode; // string
  52.   public $dtmDate; // string
  53.   public $TransferPlaceType; // string
  54.   public $TransferExecutionType; // string
  55.   public $noOfPax; // string
  56. }
  57.  
  58. class GetTransferPricesResponse {
  59.   public $GetTransferPricesResult; // GetTransferPricesResult
  60. }
  61.  
  62. class GetTransferPricesResult {
  63.   public $any; // <anyXML>
  64. }
  65.  
  66. class GetOnePackage {
  67.   public $agency; // string
  68.   public $packageCode; // string
  69.   public $date; // string
  70.   public $noOfPax; // string
  71. }
  72.  
  73. class GetOnePackageResponse {
  74.   public $GetOnePackageResult; // GetOnePackageResult
  75. }
  76.  
  77. class GetOnePackageResult {
  78.   public $any; // <anyXML>
  79. }
  80.  
  81. class GetAllPackages {
  82.   public $agency; // string
  83.   public $date; // string
  84.   public $noOfPax; // string
  85.   public $duration; // string
  86. }
  87.  
  88. class GetAllPackagesResponse {
  89.   public $GetAllPackagesResult; // GetAllPackagesResult
  90. }
  91.  
  92. class GetAllPackagesResult {
  93.   public $any; // <anyXML>
  94. }
  95.  
  96. class CreateReservationFile2 {
  97.   public $xmlReservationData; // string
  98. }
  99.  
  100. class CreateReservationFile2Response {
  101.   public $CreateReservationFile2Result; // string
  102. }
  103.  
  104. class HotelsSearch {
  105.   public $HotelData; // string
  106. }
  107.  
  108. class HotelsSearchResponse {
  109.   public $HotelsSearchResult; // HotelsSearchResult
  110. }
  111.  
  112. class HotelsSearchResult {
  113.   public $any; // <anyXML>
  114. }
  115.  
  116. class CreateReservationFile {
  117.   public $xmlReservationData; // string
  118. }
  119.  
  120. class CreateReservationFileResponse {
  121.   public $CreateReservationFileResult; // string
  122. }
  123.  
  124. class CancelPNR {
  125.   public $PNR; // int
  126. }
  127.  
  128. class CancelPNRResponse {
  129.   public $CancelPNRResult; // string
  130. }
  131.  
  132. class ChangePassword {
  133.   public $UserName; // string
  134.   public $Oldpassword; // string
  135.   public $NewPassword; // string
  136. }
  137.  
  138. class ChangePasswordResponse {
  139.   public $ChangePasswordResult; // string
  140. }
  141.  
  142.  
  143. /**
  144.  * Service class
  145.  *
  146.  *
  147.  *
  148.  * @author    {author}
  149.  * @copyright {copyright}
  150.  * @package   {package}
  151.  */
  152. class Service extends SoapClient {
  153.  
  154.   private static $classmap = array(
  155.                                     'TourSearch' => 'TourSearch',
  156.                                     'TourSearchResponse' => 'TourSearchResponse',
  157.                                     'TourSearchResult' => 'TourSearchResult',
  158.                                     'GetHotelOrCruisePrices' => 'GetHotelOrCruisePrices',
  159.                                     'GetHotelOrCruisePricesResponse' => 'GetHotelOrCruisePricesResponse',
  160.                                     'GetHotelOrCruisePricesResult' => 'GetHotelOrCruisePricesResult',
  161.                                     'GetHotelSupplements' => 'GetHotelSupplements',
  162.                                     'GetHotelSupplementsResponse' => 'GetHotelSupplementsResponse',
  163.                                     'GetHotelSupplementsResult' => 'GetHotelSupplementsResult',
  164.                                     'GetTransferPrices' => 'GetTransferPrices',
  165.                                     'GetTransferPricesResponse' => 'GetTransferPricesResponse',
  166.                                     'GetTransferPricesResult' => 'GetTransferPricesResult',
  167.                                     'GetOnePackage' => 'GetOnePackage',
  168.                                     'GetOnePackageResponse' => 'GetOnePackageResponse',
  169.                                     'GetOnePackageResult' => 'GetOnePackageResult',
  170.                                     'GetAllPackages' => 'GetAllPackages',
  171.                                     'GetAllPackagesResponse' => 'GetAllPackagesResponse',
  172.                                     'GetAllPackagesResult' => 'GetAllPackagesResult',
  173.                                     'CreateReservationFile2' => 'CreateReservationFile2',
  174.                                     'CreateReservationFile2Response' => 'CreateReservationFile2Response',
  175.                                     'HotelsSearch' => 'HotelsSearch',
  176.                                     'HotelsSearchResponse' => 'HotelsSearchResponse',
  177.                                     'HotelsSearchResult' => 'HotelsSearchResult',
  178.                                     'CreateReservationFile' => 'CreateReservationFile',
  179.                                     'CreateReservationFileResponse' => 'CreateReservationFileResponse',
  180.                                     'CancelPNR' => 'CancelPNR',
  181.                                     'CancelPNRResponse' => 'CancelPNRResponse',
  182.                                     'ChangePassword' => 'ChangePassword',
  183.                                     'ChangePasswordResponse' => 'ChangePasswordResponse',
  184.                                    );
  185.  
  186.   public function Service($wsdl = "http://196.218.16.133/onlinereservation/service.asmx?WSDL", $options = array()) {
  187.     foreach(self::$classmap as $key => $value) {
  188.       if(!isset($options['classmap'][$key])) {
  189.         $options['classmap'][$key] = $value;
  190.       }
  191.     }
  192.     parent::__construct($wsdl, $options);
  193.   }
  194.  
  195.   /**
  196.    *
  197.    *
  198.    * @param TourSearch $parameters
  199.    * @return TourSearchResponse
  200.    */
  201.   public function TourSearch(TourSearch $parameters) {
  202.     return $this->__soapCall('TourSearch', array($parameters),       array(
  203.             'uri' => 'http://tsegypt.homeip.net/onlinereservation/service.asmx',
  204.             'soapaction' => ''
  205.            )
  206.       );
  207.   }
  208.  
  209.   /**
  210.    *
  211.    *
  212.    * @param GetHotelOrCruisePrices $parameters
  213.    * @return GetHotelOrCruisePricesResponse
  214.    */
  215.   public function GetHotelOrCruisePrices(GetHotelOrCruisePrices $parameters) {
  216.     return $this->__soapCall('GetHotelOrCruisePrices', array($parameters),       array(
  217.             'uri' => 'http://tsegypt.homeip.net/onlinereservation/service.asmx',
  218.             'soapaction' => ''
  219.            )
  220.       );
  221.   }
  222.  
  223.   /**
  224.    *
  225.    *
  226.    * @param GetHotelSupplements $parameters
  227.    * @return GetHotelSupplementsResponse
  228.    */
  229.   public function GetHotelSupplements(GetHotelSupplements $parameters) {
  230.     return $this->__soapCall('GetHotelSupplements', array($parameters),       array(
  231.             'uri' => 'http://tsegypt.homeip.net/onlinereservation/service.asmx',
  232.             'soapaction' => ''
  233.            )
  234.       );
  235.   }
  236.  
  237.   /**
  238.    *
  239.    *
  240.    * @param GetTransferPrices $parameters
  241.    * @return GetTransferPricesResponse
  242.    */
  243.   public function GetTransferPrices(GetTransferPrices $parameters) {
  244.     return $this->__soapCall('GetTransferPrices', array($parameters),       array(
  245.             'uri' => 'http://tsegypt.homeip.net/onlinereservation/service.asmx',
  246.             'soapaction' => ''
  247.            )
  248.       );
  249.   }
  250.  
  251.   /**
  252.    *
  253.    *
  254.    * @param GetOnePackage $parameters
  255.    * @return GetOnePackageResponse
  256.    */
  257.   public function GetOnePackage(GetOnePackage $parameters) {
  258.     return $this->__soapCall('GetOnePackage', array($parameters),       array(
  259.             'uri' => 'http://tsegypt.homeip.net/onlinereservation/service.asmx',
  260.             'soapaction' => ''
  261.            )
  262.       );
  263.   }
  264.  
  265.   /**
  266.    *
  267.    *
  268.    * @param GetAllPackages $parameters
  269.    * @return GetAllPackagesResponse
  270.    */
  271.   public function GetAllPackages(GetAllPackages $parameters) {
  272.     return $this->__soapCall('GetAllPackages', array($parameters),       array(
  273.             'uri' => 'http://tsegypt.homeip.net/onlinereservation/service.asmx',
  274.             'soapaction' => ''
  275.            )
  276.       );
  277.   }
  278.  
  279.   /**
  280.    *
  281.    *
  282.    * @param CreateReservationFile2 $parameters
  283.    * @return CreateReservationFile2Response
  284.    */
  285.   public function CreateReservationFile2(CreateReservationFile2 $parameters) {
  286.     return $this->__soapCall('CreateReservationFile2', array($parameters),       array(
  287.             'uri' => 'http://tsegypt.homeip.net/onlinereservation/service.asmx',
  288.             'soapaction' => ''
  289.            )
  290.       );
  291.   }
  292.  
  293.   /**
  294.    *
  295.    *
  296.    * @param HotelsSearch $parameters
  297.    * @return HotelsSearchResponse
  298.    */
  299.   public function HotelsSearch(HotelsSearch $parameters) {
  300.     return $this->__soapCall('HotelsSearch', array($parameters),       array(
  301.             'uri' => 'http://tsegypt.homeip.net/onlinereservation/service.asmx',
  302.             'soapaction' => ''
  303.            )
  304.       );
  305.   }
  306.  
  307.   /**
  308.    *
  309.    *
  310.    * @param CreateReservationFile $parameters
  311.    * @return CreateReservationFileResponse
  312.    */
  313.   public function CreateReservationFile(CreateReservationFile $parameters) {
  314.     return $this->__soapCall('CreateReservationFile', array($parameters),       array(
  315.             'uri' => 'http://tsegypt.homeip.net/onlinereservation/service.asmx',
  316.             'soapaction' => ''
  317.            )
  318.       );
  319.   }
  320.  
  321.   /**
  322.    *
  323.    *
  324.    * @param CancelPNR $parameters
  325.    * @return CancelPNRResponse
  326.    */
  327.   public function CancelPNR(CancelPNR $parameters) {
  328.     return $this->__soapCall('CancelPNR', array($parameters),       array(
  329.             'uri' => 'http://tsegypt.homeip.net/onlinereservation/service.asmx',
  330.             'soapaction' => ''
  331.            )
  332.       );
  333.   }
  334.  
  335.   /**
  336.    *
  337.    *
  338.    * @param ChangePassword $parameters
  339.    * @return ChangePasswordResponse
  340.    */
  341.   public function ChangePassword(ChangePassword $parameters) {
  342.     return $this->__soapCall('ChangePassword', array($parameters),       array(
  343.             'uri' => 'http://tsegypt.homeip.net/onlinereservation/service.asmx',
  344.             'soapaction' => ''
  345.            )
  346.       );
  347.   }
  348.  
  349. }
  350.  
  351. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement