WSAskaRoute


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

UpdateRoute

Тест

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

SOAP 1.1

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

POST /WSAskaRoute/WSAskaRoute.asmx HTTP/1.1
Host: 185.68.101.151
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "urn:#UpdateRoute"

<?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>
    <UpdateRouteQuery xmlns="urn:Navigator:Services:Aska:Route:1.0">
      <Route>
        <Cars xmlns="urn:Navigator:Services:Aska:Common:1.0">
          <GarrageNumber>string</GarrageNumber>
          <GarrageNumber>string</GarrageNumber>
        </Cars>
        <AreaTimes xmlns="urn:Navigator:Services:Aska:Common:1.0">
          <AreaTime>
            <AreaCode xsi:nil="true" />
            <MinDuration>int</MinDuration>
            <MaxDuration>int</MaxDuration>
          </AreaTime>
          <AreaTime>
            <AreaCode xsi:nil="true" />
            <MinDuration>int</MinDuration>
            <MaxDuration>int</MaxDuration>
          </AreaTime>
        </AreaTimes>
        <ConnectionTimes xmlns="urn:Navigator:Services:Aska:Common:1.0">
          <ConnectionTime Reversed="boolean">
            <AreaCodeFrom xsi:nil="true" />
            <AreaCodeTo xsi:nil="true" />
            <MinDuration>int</MinDuration>
            <MaxDuration>int</MaxDuration>
          </ConnectionTime>
          <ConnectionTime Reversed="boolean">
            <AreaCodeFrom xsi:nil="true" />
            <AreaCodeTo xsi:nil="true" />
            <MinDuration>int</MinDuration>
            <MaxDuration>int</MaxDuration>
          </ConnectionTime>
        </ConnectionTimes>
      </Route>
    </UpdateRouteQuery>
  </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>
    <UpdateRouteResult xmlns="urn:Navigator:Services:Aska:Route:1.0" />
  </soap:Body>
</soap:Envelope>

SOAP 1.2

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

POST /WSAskaRoute/WSAskaRoute.asmx HTTP/1.1
Host: 185.68.101.151
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>
    <UpdateRouteQuery xmlns="urn:Navigator:Services:Aska:Route:1.0">
      <Route>
        <Cars xmlns="urn:Navigator:Services:Aska:Common:1.0">
          <GarrageNumber>string</GarrageNumber>
          <GarrageNumber>string</GarrageNumber>
        </Cars>
        <AreaTimes xmlns="urn:Navigator:Services:Aska:Common:1.0">
          <AreaTime>
            <AreaCode xsi:nil="true" />
            <MinDuration>int</MinDuration>
            <MaxDuration>int</MaxDuration>
          </AreaTime>
          <AreaTime>
            <AreaCode xsi:nil="true" />
            <MinDuration>int</MinDuration>
            <MaxDuration>int</MaxDuration>
          </AreaTime>
        </AreaTimes>
        <ConnectionTimes xmlns="urn:Navigator:Services:Aska:Common:1.0">
          <ConnectionTime Reversed="boolean">
            <AreaCodeFrom xsi:nil="true" />
            <AreaCodeTo xsi:nil="true" />
            <MinDuration>int</MinDuration>
            <MaxDuration>int</MaxDuration>
          </ConnectionTime>
          <ConnectionTime Reversed="boolean">
            <AreaCodeFrom xsi:nil="true" />
            <AreaCodeTo xsi:nil="true" />
            <MinDuration>int</MinDuration>
            <MaxDuration>int</MaxDuration>
          </ConnectionTime>
        </ConnectionTimes>
      </Route>
    </UpdateRouteQuery>
  </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>
    <UpdateRouteResult xmlns="urn:Navigator:Services:Aska:Route:1.0" />
  </soap12:Body>
</soap12:Envelope>