Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • id_ComplexReserve – int – номер командировки в системе Кортеос;

  • ClientToken – string – токен клиента

Expand
titleпример запроса
Code Block
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cor="http://www.corteos.ru/">
   <soapenv:Header>
      <cor:AuthHeader>
         <!--Optional:-->
         <cor:Token>adf32723-****-****-965c-00beaa068491</cor:Token>
      </cor:AuthHeader>
   </soapenv:Header>
   <soapenv:Body>
      <cor:CancelComplexReserve>
         <cor:id_ComplexReserve>766114</cor:id_ComplexReserve>
      </cor:CancelComplexReserve>
   </soapenv:Body>
</soapenv:Envelope>
Expand
titleпример ответа без ошибки
Code Block
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CancelComplexReserveResponse xmlns="http://www.corteos.ru/">
         <CancelComplexReserveResult>
            <Result>true</Result>
         </CancelComplexReserveResult>
      </CancelComplexReserveResponse>
   </soap:Body>
</soap:Envelope>
Expand
titleпример ответа с ошибкой
Code Block
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CancelComplexReserveResponse xmlns="http://www.corteos.ru/">
         <CancelComplexReserveResult>
            <Result>false</Result>
            <Errors>
               <string>Complex reserve is inaccessible</string>
            </Errors>
         </CancelComplexReserveResult>
      </CancelComplexReserveResponse>
   </soap:Body>
</soap:Envelope>