Master-Interlook:Использование веб-сервиса/en — различия между версиями

Материал из Megatec
Перейти к: навигация, поиск
[досмотренная версия][досмотренная версия]
(Новая страница: «Master-Interlook:FAQ on web-service use»)
 
(Новая страница: «Version {{REVISIONDAY}}-{{REVISIONMONTH}}-{{REVISIONYEAR}}. ==Introduction== This article provides answers to frequently asked questions (FAQ) to work with a web …»)
Строка 1: Строка 1:
 
<languages />
 
<languages />
Версия статьи от {{REVISIONDAY}}-{{REVISIONMONTH}}-{{REVISIONYEAR}}.
+
Version {{REVISIONDAY}}-{{REVISIONMONTH}}-{{REVISIONYEAR}}.
==Введение==
+
==Introduction==
Данная статья содержит ответы на часто возникающие вопросы(FAQ) по работе с веб-сервисом использумым в ПК "Мастер-Interlook".
+
This article provides answers to frequently asked questions (FAQ) to work with a web service one used in the PC "Master-Interlook".
==Ответы на часто возникающие вопросы==
+
== Answers to frequently asked questions ==
'''Q:'''Возможно ли бронирование отелей? <br />
+
'' 'Q:''' Is it possible to book hotels? <br />
'''A:'''Да<br /><br />
+
'' 'A:''' Yes ​​<br /> <br />
'''Q:'''Возможно ли через веб-сервис бронирование экскурсий?<br />
+
'' 'Q:''' Is it possible through a web service to book excursions? <br />
'''A:'''Да<br /><br />
+
'' 'A:''' Yes ​​<br /> <br />
'''Q:'''Возможно ли через веб-сервис бронирование трансферов?<br />
+
'' 'Q:''' Is it possible through a web service to book transfers? <br />
'''A:'''Да<br /><br />
+
'' 'A:''' Yes ​​<br /> <br />
'''Q:'''Возможно ли через веб-сервис бронирование каких-либо ещё услуг?<br />
+
'' 'Q:''' Is it possible through a web service book any more services? <br />
'''A:'''Да (доп. услуги и пакеты)<br /><br />
+
'' 'A:''' Yes ​​(additional services and packages) <br /> <br />
'''Q:'''Бронируется путевка с произвольным набором услуг.<br />
+
'' 'Q:''' We book reservation with an arbitrary set of services. <br />
Какие есть ограничения при использовании веб-сервиса (как технические, так и алгоритмические)?<br />
+
What are the limitations of using a web service (both technical and algorithmic)? <br />
'''A:'''Microsoft.Net FrameWork 4.0 IIS 7 и выше.<br /><br />
+
'' 'A:''' Microsoft.Net FrameWork 4.0 IIS 7 and above. <br /> <br />
'''Q:'''Возможно ли получение всех необходимых справочных данных (города, страны, отели, типы трансферов, документов, места, языки и т.д.)?<br />  
+
'' 'Q:''' Is it possible to obtain all the necessary reference data (cities, countries, hotels, types of transfers, documents, places, languages, etc.)? <br />
'''A:'''Есть набор методов по получению данных из справочников. Метод GetData(DataRequest dataRequest) получает данные справочников(тип справочника передается в параметры): ExtraServices, Countries, Regions, Cities, RoomCategories, RoomTypes, RoomAccommodations, Pansions, Hotels, Ratings, Airports, Transports, Providers, Excursions, Transfers, TransferTypes, ServicePackages, Rates, DLStatuses,Tariffs, Charters, RoomDescriptions. Так же есть отдельные методы по получению данных из справочников.<br /><br />
+
'' 'A:''' There is a set of methods to get data from the dictionaries. Method GetData (DataRequest dataRequest) receives data from dictionaries (dictionary type is passed in): ExtraServices, Countries, Regions, Cities, RoomCategories, RoomTypes, RoomAccommodations, Pansions, Hotels, Ratings, Airports, Transports, Providers, Excursions, Transfers, TransferTypes, ServicePackages , Rates, DLStatuses, Tariffs, Charters, RoomDescriptions. There's also a separate methods to get data from dictionaries. <br /> <br />
'''Q:'''Есть ли возможность поиска услуг по заранее определённым параметрам, а именно: даты проведения, место проведения – страна, город (для трансферов точки начала и окончания), количество человек, дополнительные ограничения( тип трансфера, экскурсии, отель, звёздность, питание)? В результатах поиска должны быть услуги с их описанием и конечной ценой услуги (для квотируемых услуг квоты).<br />
+
'' 'Q:''' Is it possible to search for services on pre-defined parameters, such as: dates, location - city, country (for transfers start and end points), number of persons, additional restrictions (type of transfer, tours, hotel stardom, food)? The search results should be a service to their description and the final price of services (for service quota quota). <br />
'''A:'''Метода для поиска услуг нет. Есть метод для поиска путевок Megatec.Interlook.DataObjects.DataRequestResult GetPagingData(string guid, Megatec.Interlook.DataObjects.DataRequestParams dataRequest) (так же этот метод умеет обсчитывать и искать цены на услуги). Этим методо можно получить список путевок по параметрам, а методом Megatec.Travel.Entities.Reservation GetReservation(string guid, int dgKey) получить нужную путевку с детализацией по услугам, туристам и т.д.<br /><br />
+
'' 'A:''' method to search for services not. There is a method to search for reservations Megatec.Interlook.DataObjects.DataRequestResult GetPagingData (string guid, Megatec.Interlook.DataObjects.DataRequestParams dataRequest) (also, this method is able to cheat and look for the price of services). This method can get a list of reservations by the parameters, and the method Megatec.Travel.Entities.Reservation GetReservation (string guid, int dgKey) to get the right reservation with details on services, reservation, etc. <br /> <br />
'''Q:'''Есть ли возможность  запроса дополнительной информации по услугам (данный пункт может быть реализован в поиске): возврат информации по возможным штрафам за незаезд, условия предоставления услуг, детальное описание услуг?<br />  
+
'' 'Q:''' Is it possible to request additional information on services (the item can be implemented in the search): Returns information on possible penalties for no-shows, the conditions of service, a detailed description of the services? <br />
'''A:'''Нет, нужно получить путевку – в ней содержится вся информация по ее услугам.<br /><br />
+
'' 'A:''' No, I need to get a reservation - it contains all the information about its services. <br /> <br />
'''Q:'''Есть ли возможность бронирования услуги. Метод должен принять запрос на бронирование и вернуть как минимум идентификатор брони для дальнейшего запроса статуса?<br />
+
'' 'Q:''' Is there a possibility of booking. The method must accept a request for a reservation and get at least an identifier for further reservation status request? <br />
'''A:'''Метод Megatec.Travel.Entities.Reservation CreateReservation(string guid, Megatec.Travel.Entities.Reservation reserv) создает путевку и возвращает получившуюся путевку после бронирования.<br />
+
'' 'A:''' Method Megatec.Travel.Entities.Reservation CreateReservation (string guid, Megatec.Travel.Entities.Reservation reserv) creates and returns a reservation after booking. <br />
'''Q:'''Есть ли возможность запроса статуса забронированной услуги. Возвращает статус (и если есть изменения) по бронированной услуге?<br />  
+
'' 'Q:''' Is it possible to query the status of the booked services. Returns the status (and if there is change) Book Services? <br />
'''A:'''Получив услуги путевки стандартными методами, можно у услуги посмотреть ее статус.<br /><br />
+
'' 'A:''' get a service voucher standard methods, we can look at the service's status. <br /> <br />
'''Q:'''Есть ли возможность аннулирования услуги (аналогично бронированию, но с соответствующим назначением)?<br />
+
'' 'Q:''' Is it possible to cancel service (similar reservations, but with appropriate designation)? <br />
'''A:'''Метод string CancelReservation(string guid, int dgKey, int annulReasonID, string note) аннулирует путевку. Метод string CancelServices(string guid, int dgKey, string dlKeys, int annulReasonID, string note) аннулирует определенные услуги из путевки.<br /><br />
+
'' 'A:''' Method string CancelReservation (string guid, int dgKey, int annulReasonID, string note) will cancel reservation. Method string CancelServices (string guid, int dgKey, string dlKeys, int annulReasonID, string note)will cancel services in reservation. <br /> <br />
'''Q:'''Возможно ли с помощью сервиса изменять уже забронированные услуги?<br />  
+
'' 'Q:''' Is it possible using the web-service change already reserved services? <br />
'''A:'''Это возможно. Алгоритм такой: стандартным методом получаем путевку, меняем в ней то, что нам необходимо, отправляем эту путевку методом для бронирования путевки. Метод определит, что такая путевка уже была, и произведет изменения вместо создания новой.<br /><br />
+
'' 'A:''' It's possible. Algorithm is as follows: the standard method we get a reservation, change in it that we need, send this reservation using method for booking. The method determines that a reservation has already been created, and will make a change, instead of creating new one. <br /> <br />
  
 
[[Category:Master-Interlook_Администрирование]]
 
[[Category:Master-Interlook_Администрирование]]

Версия 14:40, 27 ноября 2012

Другие языки:
English • ‎русский

Version 27-11-2012.

Introduction

This article provides answers to frequently asked questions (FAQ) to work with a web service one used in the PC "Master-Interlook".

Answers to frequently asked questions

'Q:' Is it possible to book hotels?
'A:' Yes ​​

'Q:' Is it possible through a web service to book excursions?
'A:' Yes ​​

'Q:' Is it possible through a web service to book transfers?
'A:' Yes ​​

'Q:' Is it possible through a web service book any more services?
'A:' Yes ​​(additional services and packages)

'Q:' We book reservation with an arbitrary set of services.
What are the limitations of using a web service (both technical and algorithmic)?
'A:' Microsoft.Net FrameWork 4.0 IIS 7 and above.

'Q:' Is it possible to obtain all the necessary reference data (cities, countries, hotels, types of transfers, documents, places, languages, etc.)?
'A:' There is a set of methods to get data from the dictionaries. Method GetData (DataRequest dataRequest) receives data from dictionaries (dictionary type is passed in): ExtraServices, Countries, Regions, Cities, RoomCategories, RoomTypes, RoomAccommodations, Pansions, Hotels, Ratings, Airports, Transports, Providers, Excursions, Transfers, TransferTypes, ServicePackages , Rates, DLStatuses, Tariffs, Charters, RoomDescriptions. There's also a separate methods to get data from dictionaries.

'Q:' Is it possible to search for services on pre-defined parameters, such as: dates, location - city, country (for transfers start and end points), number of persons, additional restrictions (type of transfer, tours, hotel stardom, food)? The search results should be a service to their description and the final price of services (for service quota quota).
'A:' method to search for services not. There is a method to search for reservations Megatec.Interlook.DataObjects.DataRequestResult GetPagingData (string guid, Megatec.Interlook.DataObjects.DataRequestParams dataRequest) (also, this method is able to cheat and look for the price of services). This method can get a list of reservations by the parameters, and the method Megatec.Travel.Entities.Reservation GetReservation (string guid, int dgKey) to get the right reservation with details on services, reservation, etc.

'Q:' Is it possible to request additional information on services (the item can be implemented in the search): Returns information on possible penalties for no-shows, the conditions of service, a detailed description of the services?
'A:' No, I need to get a reservation - it contains all the information about its services.

'Q:' Is there a possibility of booking. The method must accept a request for a reservation and get at least an identifier for further reservation status request?
'A:' Method Megatec.Travel.Entities.Reservation CreateReservation (string guid, Megatec.Travel.Entities.Reservation reserv) creates and returns a reservation after booking.
'Q:' Is it possible to query the status of the booked services. Returns the status (and if there is change) Book Services?
'A:' get a service voucher standard methods, we can look at the service's status.

'Q:' Is it possible to cancel service (similar reservations, but with appropriate designation)?
'A:' Method string CancelReservation (string guid, int dgKey, int annulReasonID, string note) will cancel reservation. Method string CancelServices (string guid, int dgKey, string dlKeys, int annulReasonID, string note)will cancel services in reservation.

'Q:' Is it possible using the web-service change already reserved services?
'A:' It's possible. Algorithm is as follows: the standard method we get a reservation, change in it that we need, send this reservation using method for booking. The method determines that a reservation has already been created, and will make a change, instead of creating new one.