Получение списка мест (MPS) накладной по её номеру

WaybillPlacesInfo

Метод WaybillPlacesInfo получает список мест (MPS) накладной по её номеру.

Для каждого места возвращаются его номер, вес и габариты. Результат представлен массивом PlaceModel в элементе Items.

Описание параметров запроса

ПАРАМЕТРОПИСАНИЕ WSDLОПИСАНИЕ
waybillNumbertype="string"номер накладной МЭ

В предоставленной спецификации WaybillPlacesInfo атрибуты minOccurs и maxOccurs для waybillNumber не указаны.

SOAP-запрос

<soap:Body>
  <WaybillPlacesInfo xmlns="http://tempuri.org/">
    <waybillNumber>string</waybillNumber>
  </WaybillPlacesInfo>
</soap:Body>

Полный SOAP-запрос содержит стандартный TicketHeader с параметрами Ticket, UserName, CheckSum и inRole.

Описание параметров ответа

ПАРАМЕТРОПИСАНИЕ WSDLОПИСАНИЕ
ResCodetype="int"код ответа
ResTexttype="string"текст ответа
Itemsтип в представленном SOAP-примере не указансписок мест накладной
Items → PlaceModel → PlaceNumbertype="string"номер места
Items → PlaceModel → Weighttype="double"вес места
Items → PlaceModel → Widthtype="double"ширина места
Items → PlaceModel → Lengthtype="double"длина места
Items → PlaceModel → Heighttype="double"высота места
Items → PlaceModel → Volumetype="double"значение объёма места; единица измерения в предоставленной спецификации не указана

Элементы PlaceModel повторяются внутри Items, то есть ответ предусматривает несколько мест одной накладной.

Структура ответа

<soap:Body>
  <WaybillPlacesInfoResponse xmlns="http://tempuri.org/">
    <WaybillPlacesInfoResult>

      <!-- Результат выполнения метода -->
      <ResCode>int</ResCode>
      <ResText>string</ResText>

      <!-- Список мест накладной -->
      <Items>

        <PlaceModel>
          <PlaceNumber>string</PlaceNumber>
          <Weight>double</Weight>
          <Width>double</Width>
          <Length>double</Length>
          <Height>double</Height>
          <Volume>double</Volume>
        </PlaceModel>

        <PlaceModel>
          <PlaceNumber>string</PlaceNumber>
          <Weight>double</Weight>
          <Width>double</Width>
          <Length>double</Length>
          <Height>double</Height>
          <Volume>double</Volume>
        </PlaceModel>

      </Items>

    </WaybillPlacesInfoResult>
  </WaybillPlacesInfoResponse>
</soap:Body>

SOAP 1.1

Endpoint: /ShipmentService.asmx

SOAPAction: http://tempuri.org/WaybillPlacesInfo

Content-Type: text/xml; charset=utf-8

<?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>
    <TicketHeader xmlns="http://tempuri.org/">
      <Ticket>string</Ticket>
      <UserName>string</UserName>
      <CheckSum>int</CheckSum>
      <inRole>boolean</inRole>
    </TicketHeader>
  </soap:Header>

  <soap:Body>
    <WaybillPlacesInfo xmlns="http://tempuri.org/">
      <waybillNumber>string</waybillNumber>
    </WaybillPlacesInfo>
  </soap:Body>

</soap:Envelope>

SOAP 1.2

Endpoint: /ShipmentService.asmx

Content-Type: application/soap+xml; charset=utf-8

<?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>
    <TicketHeader xmlns="http://tempuri.org/">
      <Ticket>string</Ticket>
      <UserName>string</UserName>
      <CheckSum>int</CheckSum>
      <inRole>boolean</inRole>
    </TicketHeader>
  </soap12:Header>

  <soap12:Body>
    <WaybillPlacesInfo xmlns="http://tempuri.org/">
      <waybillNumber>string</waybillNumber>
    </WaybillPlacesInfo>
  </soap12:Body>

</soap12:Envelope>

Метод поддерживает SOAP 1.1 и SOAP 1.2. Для SOAP 1.1 в исходной спецификации указан SOAPAction, а для SOAP 1.2 используется application/soap+xml.