EDClientsWebService


Click here for a complete list of operations.

CreateWaybill_Shipper

Создание новой накладной.

Параметры:
RequestID - идентификатор запроса
ClientInfo - идентификатор отправки клиента
Shipper - идентификатор отправителя
Consignee - данные получателя
Weight - вес (кг)
Package - количество мест
Cost - стоимость (руб)
Size - ДШВ (см)
Description - описание груза
CostCenter - центр затрат
DeliveryCondition - особые условия доставки
DeliveryComment - комментарий к доставке
EPDData - данные ЭПД

Возвращает: номер накладной

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /edclientsepd.asmx HTTP/1.1
Host: stage-ed.major-express.ru
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://ed.major-express.ru/CreateWaybill_Shipper"

<?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>
    <CreateWaybill_Shipper xmlns="https://ed.major-express.ru/">
      <RequestID>guid</RequestID>
      <ClientInfo>string</ClientInfo>
      <Shipper>int</Shipper>
      <Consignee>
        <Person>string</Person>
        <Phone>string</Phone>
        <Company>string</Company>
        <Address>string</Address>
        <PostIndex>string</PostIndex>
        <CityCode>int</CityCode>
      </Consignee>
      <Weight>decimal</Weight>
      <Package>short</Package>
      <Cost>decimal</Cost>
      <Size>
        <Length>int</Length>
        <Width>int</Width>
        <Height>int</Height>
      </Size>
      <Description>string</Description>
      <CostCenter>int</CostCenter>
      <DeliveryCondition>None or Promptly or Saturday or Return</DeliveryCondition>
      <DeliveryComment>string</DeliveryComment>
      <EPDData>
        <Shipper>
          <INN>string</INN>
          <IsIndividual>boolean</IsIndividual>
        </Shipper>
        <Consignee>
          <INN>string</INN>
          <IsIndividual>boolean</IsIndividual>
        </Consignee>
        <CargoCountryOksmCode>string</CargoCountryOksmCode>
      </EPDData>
    </CreateWaybill_Shipper>
  </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>
    <CreateWaybill_ShipperResponse xmlns="https://ed.major-express.ru/">
      <CreateWaybill_ShipperResult>string</CreateWaybill_ShipperResult>
    </CreateWaybill_ShipperResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /edclientsepd.asmx HTTP/1.1
Host: stage-ed.major-express.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:Body>
    <CreateWaybill_Shipper xmlns="https://ed.major-express.ru/">
      <RequestID>guid</RequestID>
      <ClientInfo>string</ClientInfo>
      <Shipper>int</Shipper>
      <Consignee>
        <Person>string</Person>
        <Phone>string</Phone>
        <Company>string</Company>
        <Address>string</Address>
        <PostIndex>string</PostIndex>
        <CityCode>int</CityCode>
      </Consignee>
      <Weight>decimal</Weight>
      <Package>short</Package>
      <Cost>decimal</Cost>
      <Size>
        <Length>int</Length>
        <Width>int</Width>
        <Height>int</Height>
      </Size>
      <Description>string</Description>
      <CostCenter>int</CostCenter>
      <DeliveryCondition>None or Promptly or Saturday or Return</DeliveryCondition>
      <DeliveryComment>string</DeliveryComment>
      <EPDData>
        <Shipper>
          <INN>string</INN>
          <IsIndividual>boolean</IsIndividual>
        </Shipper>
        <Consignee>
          <INN>string</INN>
          <IsIndividual>boolean</IsIndividual>
        </Consignee>
        <CargoCountryOksmCode>string</CargoCountryOksmCode>
      </EPDData>
    </CreateWaybill_Shipper>
  </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>
    <CreateWaybill_ShipperResponse xmlns="https://ed.major-express.ru/">
      <CreateWaybill_ShipperResult>string</CreateWaybill_ShipperResult>
    </CreateWaybill_ShipperResponse>
  </soap12:Body>
</soap12:Envelope>