Информация по накладной с детализацией по местам

me_FullInvoce

Метод устарел.

Был заменён на метод:
Получение данных о накладной по её номеру (текущее состояние)
WaybillInfo
и
Получение данных о накладной по её номеру с полной историей событий
WaybillInfoWithHistory

Обоснование замены:

Критерийme_FullInvoceWaybillInfo / WaybillInfoWithHistoryПочему новый метод лучше
Структура моделиПлоский список из множества полейДанные сгруппированы в логические объекты (Header, Route, CargoInfo, PaymentInfo)Контракт легче понимать и анализировать
Объектное моделированиеНапоминает результат большого SQL-запросаМодель отражает реальные бизнес-сущностиAPI ближе к предметной области
Композиция объектовПочти отсутствуетНакладная состоит из вложенных объектовМодель становится более естественной и расширяемой
Связность (Cohesion)Связанные данные разбросаны по всему контрактуДанные одной сущности находятся вместеПроще сопровождать и находить нужную информацию
РасширяемостьНовые поля увеличивают общий списокНовые свойства добавляются в соответствующий объектИзменения локализованы и меньше влияют на остальные части контракта
ЧитаемостьБольшое количество однотипных полей (Shipper*, Consignee*, WB*)Чёткая иерархия объектовКонтракт проще воспринимать визуально
ТипизацияЕсть числовые значения, представленные как stringИспользуются подходящие типы (double, decimal, dateTime)Уменьшается вероятность ошибок при обработке данных
История событийИстория встроена в общий ответВ WaybillInfoWithHistory выделена в отдельный раздел HistoryИстория логически отделена от основной информации
ПроизводительностьВсегда возвращает полный объём данныхМожно выбрать: с историей или без неёКлиент получает только необходимые данные
ПоддерживаемостьПри развитии контракт быстро разрастаетсяИзменения чаще затрагивают отдельные разделы моделиКонтракт проще сопровождать в долгосрочной перспективе

Бывшее местоположение: Major Express Wiki > WEB-СЕРВИСЫ > WEB-СЕРВИС АГЕНТСКИЙ > ЭКСПРЕСС-ДОСТАВКА > МЕТОДЫ > НАКЛАДНАЯ > Информация по накладной с детализацией по местам

Функция me_FullInvoce возвращает полную информацию по накладной, включая ИСТОРИЮ СОБЫТИЙ, ДАННЫЕ ОТПРАВИТЕЛЯ, ПОЛУЧАТЕЛЯ, ПАРАМЕТРЫ ГРУЗА

Полный портрет накладной

ОПИСАНИЕ ПАРАМЕТРОВ ЗАПРОСА

ПАРАМЕТРЫОПИСАНИЕ В WSDLОПИСАНИЕ
MajorNumber  minOccurs=”0
maxOccurs=”1
type=”string
номер накладной МЭ
POST /manifest.asmx HTTP/1.1
Host: agents.major-express.ru
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/me_FullInvoce"

<?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>
    <me_FullInvoce xmlns="http://tempuri.org/">
      <MajorNumber>string</MajorNumber>
    </me_FullInvoce>
  </soap:Body>
</soap:Envelope>

ОПИСАНИЕ ПАРАМЕТРОВ ОТВЕТА

ПараметрОписание в WSDLОписание
ResCodeminOccurs="1"
maxOccurs="1"
type="int"
код ответа
ResTextminOccurs="0"
maxOccurs="1"
type="string"
текст ответа
WBNumberminOccurs="0"
maxOccurs="1"
type="string"
номер накладной МЭ
WBOpenDateminOccurs="1"
maxOccurs="1"
nillable="true"
type="dateTime"
дата, время ввода накладной МЭ
WBOldNumberminOccurs="0"
maxOccurs="1"
type="string"
накладная №2 (клиентская информация)
FedexNumminOccurs="0"
maxOccurs="1"
type="string"
номер FedEx для международных перевозок
Client_NameminOccurs="0"
maxOccurs="1"
type="string"
название Клиента
PayerCodeminOccurs="1"
maxOccurs="1"
nillable="true"
type="int"
номер плательщика (клиентский номер МЭ)
ShipperLastNameminOccurs="0"
maxOccurs="1"
type="s:string"
ФИО отправителя
ShipperCompanyminOccurs="0"
maxOccurs="1"
type="s:string"
организация отправитель
ShipperCountryminOccurs="0"
maxOccurs="1"
type="string"
страна отправления
ShipperCountryCodeminOccurs="1"
maxOccurs="1"
nillable="true"
type="short"
код страны отправителя
ShipperPhoneminOccurs="0"
maxOccurs="1"
type="string"
телефон Отправителя
ShipperPostIndexminOccurs="0"
maxOccurs="1"
type="string"
почтовый индекс отправителя
ShipperAdresminOccurs="0"
maxOccurs="1"
type="string"
адрес отправителя
ShipperCityCodeminOccurs="1"
maxOccurs="1"
nillable="true"
type="int"
код города отправителя
ShipperCity_NameminOccurs="0"
maxOccurs="1"
type="string"
название города отправителя
ShipperAgentCodeminOccurs="1"
maxOccurs="1"
type="short"
код Агента отправителя
ConsigneeLastNameminOccurs="0"
maxOccurs="1"
type="string"
ФИО получателя
ConsigneeCompanyminOccurs="0"
maxOccurs="1"
type="string"
организация получатель
ConsigneeAdresminOccurs="0"
maxOccurs="1"
type="string"
адрес получателя
ConsigneePhoneminOccurs="0"
maxOccurs="1"
type="string"
телефон получателя
ConsigneePostIndexminOccurs="0"
maxOccurs="1"
type="string"
почтовый индекс получателя
ConsigneeCityCodeminOccurs="1"
maxOccurs="1"
nillable="true"
type="int"
код города получателя
ConsigneeCity_NameminOccurs="0"
maxOccurs="1"
type="string"
название города получателя
ConsigneeAgentCodeminOccurs="1"
maxOccurs="1"
type="short"
код Агента получателя
ConsigneeCountryminOccurs="0"
maxOccurs="1"
type="string"
страна получателя
ConsigneeCountryCodeminOccurs="1"
maxOccurs="1"
nillable="true"
type="short"
код страны получателя
WBPackageminOccurs="1"
maxOccurs="1"
nillable="true"
type="short"
количество мест в накладной
WBWeightminOccurs="1"
maxOccurs="1"
type="float"
вес груза (кг)
WBPackageTypeminOccurs="1"
maxOccurs="1"
nillable="true"
type="unsignedByte"
код типа упаковки
WbLengthminOccurs="0"
maxOccurs="1"
type="string"
длина (см)
WbWidthminOccurs="0"
maxOccurs="1"
type="string"
ширина (см)
WbHeightminOccurs="0"
maxOccurs="1"
type="string"
высота (см)
WBVolumeWeightminOccurs="1"
maxOccurs="1"
nillable="true"
type="float"
объемный вес груза (кг)
WBCostminOccurs="1"
maxOccurs="1"
type="float"
объявленная ценность в рублях (не может быть отрицательной или нулевой, а также превышать 100.000.000 рублей)
MoneyTypeminOccurs="0"
maxOccurs="1"
type="string"
валюта объявленной стоимости
WhoWillPayminOccurs="1"
maxOccurs="1"
nillable="true"
type="unsignedByte"
код стороны оплаты
1 - отправитель,
2 - получатель,
3 - я сторона
PaymentSideminOccurs="0"
maxOccurs="1"
type="string"
кто платит (отправитель, получатель,3-я сторона)
PaymentTypeminOccurs="1"
maxOccurs="1"
nillable="true"
type="unsignedByte"
код типа оплаты
PaymentType_NameminOccurs="0"
maxOccurs="1"
type="string"
название типа оплаты
CommentsminOccurs="0"
maxOccurs="1"
type="string"
комментарии
WBCloseDateminOccurs="1"
maxOccurs="1"
nillable="true"
type="dateTime"
дата доставки
WBCloseTimeminOccurs="0"
maxOccurs="1"
type="string"
время доставки
SubmitterminOccurs="0"
maxOccurs="1"
type="string"
принял груз
CourierminOccurs="0"
maxOccurs="1"
type="string"
доставил груз
Insurance_USDminOccurs="1"
maxOccurs="1"
nillable="true"
type="double"
стоимость страховки (USD)
Freight_USDminOccurs="1"
maxOccurs="1"
nillable="true"
type="double"
стоимость перевозки (USD)
Freight_RURminOccurs="1"
maxOccurs="1"
nillable="true"
type="double"
стоимость перевозки (руб.)
Insurance_RURminOccurs="1"
maxOccurs="1"
nillable="true"
type="double"
стоимость страховки (руб.)
TransitMoscowminOccurs="1"
maxOccurs="1"
type="int"
транзит через Москву
FreightTypeminOccurs="1"
maxOccurs="1"
type="boolean"
тип перевозки
WBDescriptionminOccurs="0"
maxOccurs="1"
type="string"
описание вложений
ReAddrminOccurs="0"
maxOccurs="1"
type="string"
комментарии (переадресация)
NaklStatusIdminOccurs="1"
maxOccurs="1"
type="unsignedByte"
код статуса накладной
NaklStatusminOccurs="0"
maxOccurs="1"
type="string"
название статуса накладной
SpecialDelivConditionsminOccurs="0"
maxOccurs="1"
nillable="true"
type="string"
спец. условия доставки
IsNeedScanminOccurs="1"
maxOccurs="1"
type="boolean"
нужен ли скан
SpecialDeliveryConditionsminOccurs="0"
maxOccurs="1"
type="tns:ArrayOfSpecialDeliveryCondition"
перечень спец. условий доставки
WbReturnNumberminOccurs="0"
maxOccurs="1"
type="string"
номер возвращаемой накладной
AgentsminOccurs="0"
maxOccurs="1"
type="tns:ArrayOfAgent"
информация об агенте отправителе
Agents1minOccurs="0"
maxOccurs="1"
type="tns:ArrayOfAgent"
информация об агенте получателя
HistoryEventsminOccurs="0"
maxOccurs="1"
type="tns:ArrayOfHistoryEvent"
события истории
PlacesminOccurs="0"
maxOccurs="1"
type="tns:ArrayOfPlace"
информация по грузовым местам
SpecialRemarksminOccurs="0"
maxOccurs="1"
type="string"
особые отметки для печати
ExpectedDeliveryDateminOccurs="1"
maxOccurs="1"
nillable="true"
type="dateTime"
расчетная дата доставки
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>
    <me_FullInvoceResponse xmlns="http://tempuri.org/">
      <me_FullInvoceResult>
        <WBNumber>string</WBNumber>
        <WBOpenDate>dateTime</WBOpenDate>
        <WBOldNumber>string</WBOldNumber>
        <FedexNum>string</FedexNum>
        <Client_Name>string</Client_Name>
        <PayerCode>int</PayerCode>
        <ShipperLastName>string</ShipperLastName>
        <ShipperPhone>string</ShipperPhone>
        <ShipperCompany>string</ShipperCompany>
        <ShipperPostIndex>string</ShipperPostIndex>
        <ShipperAdres>string</ShipperAdres>
        <ShipperCityCode>int</ShipperCityCode>
        <ShipperCity_Name>string</ShipperCity_Name>
        <ShipperAgentCode>short</ShipperAgentCode>
        <ShipperCountryCode>short</ShipperCountryCode>
        <ShipperCountry>string</ShipperCountry>
        <ConsigneeLastName>string</ConsigneeLastName>
        <ConsigneePhone>string</ConsigneePhone>
        <ConsigneeCompany>string</ConsigneeCompany>
        <ConsigneePostIndex>string</ConsigneePostIndex>
        <ConsigneeAdres>string</ConsigneeAdres>
        <ConsigneeCountryCode>short</ConsigneeCountryCode>
        <ConsigneeCountry>string</ConsigneeCountry>
        <ConsigneeCityCode>int</ConsigneeCityCode>
        <ConsigneeCity_Name>string</ConsigneeCity_Name>
        <ConsigneeAgentCode>short</ConsigneeAgentCode>
        <WBWeight>string</WBWeight>
        <WBPackage>short</WBPackage>
        <WBPackageType>unsignedByte</WBPackageType>
        <WBLength>string</WBLength>
        <WBWidth>string</WBWidth>
        <WBHeight>string</WBHeight>
        <WBVolumeWeight>float</WBVolumeWeight>
        <PaymentType>unsignedByte</PaymentType>
        <PaymentType_Name>string</PaymentType_Name>
        <WhoWillPay>unsignedByte</WhoWillPay>
        <PaymentSide>string</PaymentSide>
        <WBCost>string</WBCost>
        <MoneyType>string</MoneyType>
        <WBDescription>string</WBDescription>
        <Comments>string</Comments>
        <ReAddr>string</ReAddr>
        <WBCloseDate>dateTime</WBCloseDate>
        <WBCloseTime>string</WBCloseTime>
        <Submitter>string</Submitter>
        <Courier>string</Courier>
        <Insurance_USD>double</Insurance_USD>
        <Insurance_RUR>double</Insurance_RUR>
        <Freight_USD>double</Freight_USD>
        <Freight_RUR>double</Freight_RUR>
        <TransitMoscow>int</TransitMoscow>
        <FreightType>boolean</FreightType>
        <NaklStatusId>unsignedByte</NaklStatusId>
        <NaklStatus>string</NaklStatus>
        <SpecialDelivConditions>unsignedByte</SpecialDelivConditions>
        <IsNeedScan>int</IsNeedScan>
        <Agents>
          <Agent>
            <AgentCode>short</AgentCode>
            <AgentNameRus>string</AgentNameRus>
            <AgentTel>string</AgentTel>
          </Agent>
          <Agent>
            <AgentCode>short</AgentCode>
            <AgentNameRus>string</AgentNameRus>
            <AgentTel>string</AgentTel>
          </Agent>
        </Agents>
        <Agents1>
          <Agent>
            <AgentCode>short</AgentCode>
            <AgentNameRus>string</AgentNameRus>
            <AgentTel>string</AgentTel>
          </Agent>
          <Agent>
            <AgentCode>short</AgentCode>
            <AgentNameRus>string</AgentNameRus>
            <AgentTel>string</AgentTel>
          </Agent>
        </Agents1>
        <HistoryEvents>
          <HistoryEvent>
            <WBNumber>string</WBNumber>
            <EventNum>unsignedByte</EventNum>
            <Event_Name>string</Event_Name>
            <DateCreate>dateTime</DateCreate>
            <CityCode>int</CityCode>
            <City_Name>string</City_Name>
            <AgentCode>short</AgentCode>
            <Agent_Name>string</Agent_Name>
            <EventDate>string</EventDate>
            <EventTime>string</EventTime>
            <Comments>string</Comments>
          </HistoryEvent>
          <HistoryEvent>
            <WBNumber>string</WBNumber>
            <EventNum>unsignedByte</EventNum>
            <Event_Name>string</Event_Name>
            <DateCreate>dateTime</DateCreate>
            <CityCode>int</CityCode>
            <City_Name>string</City_Name>
            <AgentCode>short</AgentCode>
            <Agent_Name>string</Agent_Name>
            <EventDate>string</EventDate>
            <EventTime>string</EventTime>
            <Comments>string</Comments>
          </HistoryEvent>
        </HistoryEvents>
        <Places>
          <Place>
            <WBNumber>string</WBNumber>
            <MPS>string</MPS>
            <Weight>double</Weight>
            <Width>double</Width>
            <Length>double</Length>
            <Height>double</Height>
            <VolWeight>double</VolWeight>
            <IsPackage>boolean</IsPackage>
          </Place>
          <Place>
            <WBNumber>string</WBNumber>
            <MPS>string</MPS>
            <Weight>double</Weight>
            <Width>double</Width>
            <Length>double</Length>
            <Height>double</Height>
            <VolWeight>double</VolWeight>
            <IsPackage>boolean</IsPackage>
          </Place>
        </Places>
        <SpecialDeliveryConditions>
          <SpecialDeliveryCondition TypeId="int" />
          <SpecialDeliveryCondition TypeId="int" />
        </SpecialDeliveryConditions>
        <WBReturnNumber>string</WBReturnNumber>
        <SpecialRemarks>string</SpecialRemarks>
      </me_FullInvoceResult>
    </me_FullInvoceResponse>
  </soap:Body>
</soap:Envelope>