DataService


Для получения полного списка операций щелкните здесь.

Set

Creates SSO container, sets new corteos id and returns the entire object back.

Тест

Форма для тестирования доступна только для запросов от локальных компьютеров.

SOAP 1.1

В следующем примере показаны запрос и ответ SOAP 1.1. Вместо элементов-заполнителей следует подставить фактические значения.

POST /XmlGate/DataService.asmx HTTP/1.1
Host: test.sso.corteos.ru
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://sso.corteos.ru/Set"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <AuthHeader xmlns="https://sso.corteos.ru/">
      <Login>string</Login>
      <Password>string</Password>
    </AuthHeader>
  </soap:Header>
  <soap:Body>
    <Set xmlns="https://sso.corteos.ru/">
      <request>
        <SignOutUrl>string</SignOutUrl>
        <OuterId>string</OuterId>
        <CurrentRoute>
          <Origin>string</Origin>
          <Destination>string</Destination>
          <DepartureDate>dateTime</DepartureDate>
          <ReturnDate>dateTime</ReturnDate>
        </CurrentRoute>
        <CustomRoute>
          <RoutePart>
            <UniqueId>string</UniqueId>
            <DateDepart>dateTime</DateDepart>
            <DateReturn>dateTime</DateReturn>
            <Origin>string</Origin>
            <Destination>string</Destination>
            <ServiceType>string</ServiceType>
            <DepartureAdvanceShiftDays>int</DepartureAdvanceShiftDays>
            <DeparturePostShiftDays>int</DeparturePostShiftDays>
            <ReturnAdvanceShiftDays>int</ReturnAdvanceShiftDays>
            <ReturnPostShiftDays>int</ReturnPostShiftDays>
            <BookingSequence>int</BookingSequence>
            <OriginDepartureServicesIds>string</OriginDepartureServicesIds>
            <DestinationArrivalServicesIds>string</DestinationArrivalServicesIds>
            <DestinationReturnServicesIds>string</DestinationReturnServicesIds>
            <OriginReturnServicesIds>string</OriginReturnServicesIds>
          </RoutePart>
          <RoutePart>
            <UniqueId>string</UniqueId>
            <DateDepart>dateTime</DateDepart>
            <DateReturn>dateTime</DateReturn>
            <Origin>string</Origin>
            <Destination>string</Destination>
            <ServiceType>string</ServiceType>
            <DepartureAdvanceShiftDays>int</DepartureAdvanceShiftDays>
            <DeparturePostShiftDays>int</DeparturePostShiftDays>
            <ReturnAdvanceShiftDays>int</ReturnAdvanceShiftDays>
            <ReturnPostShiftDays>int</ReturnPostShiftDays>
            <BookingSequence>int</BookingSequence>
            <OriginDepartureServicesIds>string</OriginDepartureServicesIds>
            <DestinationArrivalServicesIds>string</DestinationArrivalServicesIds>
            <DestinationReturnServicesIds>string</DestinationReturnServicesIds>
            <OriginReturnServicesIds>string</OriginReturnServicesIds>
          </RoutePart>
        </CustomRoute>
        <CustomOptions>
          <CustomOption>
            <Key>string</Key>
            <Value>string</Value>
          </CustomOption>
          <CustomOption>
            <Key>string</Key>
            <Value>string</Value>
          </CustomOption>
        </CustomOptions>
        <Persons>
          <Person LastName="string" FirstName="string" MiddleName="string" LastNameLatin="string" FirstNameLatin="string" MiddleNameLatin="string" Gender="boolean" DateBirth="dateTime">
            <INN>string</INN>
            <KPP>string</KPP>
            <CountryAlpha2>string</CountryAlpha2>
            <Documents xsi:nil="true" />
            <Contacts xsi:nil="true" />
            <BonusCards xsi:nil="true" />
            <PersonalVisas xsi:nil="true" />
            <PersonalCodes xsi:nil="true" />
          </Person>
          <Person LastName="string" FirstName="string" MiddleName="string" LastNameLatin="string" FirstNameLatin="string" MiddleNameLatin="string" Gender="boolean" DateBirth="dateTime">
            <INN>string</INN>
            <KPP>string</KPP>
            <CountryAlpha2>string</CountryAlpha2>
            <Documents xsi:nil="true" />
            <Contacts xsi:nil="true" />
            <BonusCards xsi:nil="true" />
            <PersonalVisas xsi:nil="true" />
            <PersonalCodes xsi:nil="true" />
          </Person>
        </Persons>
        <BudgetCodes>
          <BudgetCode SelectorState="Disabled or Enabled" />
          <BudgetCode SelectorState="Disabled or Enabled" />
        </BudgetCodes>
        <AccountDetails id_Group="int" GroupSecurityKey="string" Email="string">
          <PersonToCreate LastName="string" FirstName="string" MiddleName="string" LastNameLatin="string" FirstNameLatin="string" MiddleNameLatin="string" Gender="boolean" DateBirth="dateTime">
            <INN>string</INN>
            <KPP>string</KPP>
            <CountryAlpha2>string</CountryAlpha2>
            <Documents xsi:nil="true" />
            <Contacts xsi:nil="true" />
            <BonusCards xsi:nil="true" />
            <PersonalVisas xsi:nil="true" />
            <PersonalCodes xsi:nil="true" />
          </PersonToCreate>
          <id_Role>int</id_Role>
        </AccountDetails>
      </request>
    </Set>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SetResponse xmlns="https://sso.corteos.ru/">
      <SetResult>
        <id_User>int</id_User>
        <CorteosId>guid</CorteosId>
        <CreationDate>dateTime</CreationDate>
        <AugmentationData>string</AugmentationData>
      </SetResult>
    </SetResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

В следующем примере показаны запрос и ответ SOAP 1,2. Вместо элементов-заполнителей следует подставить фактические значения.

POST /XmlGate/DataService.asmx HTTP/1.1
Host: test.sso.corteos.ru
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <AuthHeader xmlns="https://sso.corteos.ru/">
      <Login>string</Login>
      <Password>string</Password>
    </AuthHeader>
  </soap12:Header>
  <soap12:Body>
    <Set xmlns="https://sso.corteos.ru/">
      <request>
        <SignOutUrl>string</SignOutUrl>
        <OuterId>string</OuterId>
        <CurrentRoute>
          <Origin>string</Origin>
          <Destination>string</Destination>
          <DepartureDate>dateTime</DepartureDate>
          <ReturnDate>dateTime</ReturnDate>
        </CurrentRoute>
        <CustomRoute>
          <RoutePart>
            <UniqueId>string</UniqueId>
            <DateDepart>dateTime</DateDepart>
            <DateReturn>dateTime</DateReturn>
            <Origin>string</Origin>
            <Destination>string</Destination>
            <ServiceType>string</ServiceType>
            <DepartureAdvanceShiftDays>int</DepartureAdvanceShiftDays>
            <DeparturePostShiftDays>int</DeparturePostShiftDays>
            <ReturnAdvanceShiftDays>int</ReturnAdvanceShiftDays>
            <ReturnPostShiftDays>int</ReturnPostShiftDays>
            <BookingSequence>int</BookingSequence>
            <OriginDepartureServicesIds>string</OriginDepartureServicesIds>
            <DestinationArrivalServicesIds>string</DestinationArrivalServicesIds>
            <DestinationReturnServicesIds>string</DestinationReturnServicesIds>
            <OriginReturnServicesIds>string</OriginReturnServicesIds>
          </RoutePart>
          <RoutePart>
            <UniqueId>string</UniqueId>
            <DateDepart>dateTime</DateDepart>
            <DateReturn>dateTime</DateReturn>
            <Origin>string</Origin>
            <Destination>string</Destination>
            <ServiceType>string</ServiceType>
            <DepartureAdvanceShiftDays>int</DepartureAdvanceShiftDays>
            <DeparturePostShiftDays>int</DeparturePostShiftDays>
            <ReturnAdvanceShiftDays>int</ReturnAdvanceShiftDays>
            <ReturnPostShiftDays>int</ReturnPostShiftDays>
            <BookingSequence>int</BookingSequence>
            <OriginDepartureServicesIds>string</OriginDepartureServicesIds>
            <DestinationArrivalServicesIds>string</DestinationArrivalServicesIds>
            <DestinationReturnServicesIds>string</DestinationReturnServicesIds>
            <OriginReturnServicesIds>string</OriginReturnServicesIds>
          </RoutePart>
        </CustomRoute>
        <CustomOptions>
          <CustomOption>
            <Key>string</Key>
            <Value>string</Value>
          </CustomOption>
          <CustomOption>
            <Key>string</Key>
            <Value>string</Value>
          </CustomOption>
        </CustomOptions>
        <Persons>
          <Person LastName="string" FirstName="string" MiddleName="string" LastNameLatin="string" FirstNameLatin="string" MiddleNameLatin="string" Gender="boolean" DateBirth="dateTime">
            <INN>string</INN>
            <KPP>string</KPP>
            <CountryAlpha2>string</CountryAlpha2>
            <Documents xsi:nil="true" />
            <Contacts xsi:nil="true" />
            <BonusCards xsi:nil="true" />
            <PersonalVisas xsi:nil="true" />
            <PersonalCodes xsi:nil="true" />
          </Person>
          <Person LastName="string" FirstName="string" MiddleName="string" LastNameLatin="string" FirstNameLatin="string" MiddleNameLatin="string" Gender="boolean" DateBirth="dateTime">
            <INN>string</INN>
            <KPP>string</KPP>
            <CountryAlpha2>string</CountryAlpha2>
            <Documents xsi:nil="true" />
            <Contacts xsi:nil="true" />
            <BonusCards xsi:nil="true" />
            <PersonalVisas xsi:nil="true" />
            <PersonalCodes xsi:nil="true" />
          </Person>
        </Persons>
        <BudgetCodes>
          <BudgetCode SelectorState="Disabled or Enabled" />
          <BudgetCode SelectorState="Disabled or Enabled" />
        </BudgetCodes>
        <AccountDetails id_Group="int" GroupSecurityKey="string" Email="string">
          <PersonToCreate LastName="string" FirstName="string" MiddleName="string" LastNameLatin="string" FirstNameLatin="string" MiddleNameLatin="string" Gender="boolean" DateBirth="dateTime">
            <INN>string</INN>
            <KPP>string</KPP>
            <CountryAlpha2>string</CountryAlpha2>
            <Documents xsi:nil="true" />
            <Contacts xsi:nil="true" />
            <BonusCards xsi:nil="true" />
            <PersonalVisas xsi:nil="true" />
            <PersonalCodes xsi:nil="true" />
          </PersonToCreate>
          <id_Role>int</id_Role>
        </AccountDetails>
      </request>
    </Set>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SetResponse xmlns="https://sso.corteos.ru/">
      <SetResult>
        <id_User>int</id_User>
        <CorteosId>guid</CorteosId>
        <CreationDate>dateTime</CreationDate>
        <AugmentationData>string</AugmentationData>
      </SetResult>
    </SetResponse>
  </soap12:Body>
</soap12:Envelope>