EDClientsWebService


Click here for a complete list of operations.

CreateWaybillWithDetails

Создание новой накладной с указанием параметров мест.

Параметры:
RequestID - идентификатор запроса
ClientInfo - идентификатор отправки клиента
Shipper - данные отправителя
Consignee - данные получателя
Cost - стоимость (руб)
Description - описание груза
CostCenter - центр затрат
DeliveryCondition - особые условия доставки
DeliveryComment - комментарий к доставке
Packages - список мест
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: ed.major-express.ru
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://ed.major-express.ru/CreateWaybillWithDetails"

<?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>
    <CreateWaybillWithDetails xmlns="https://ed.major-express.ru/">
      <RequestID>guid</RequestID>
      <ClientInfo>string</ClientInfo>
      <Shipper>
        <Person>string</Person>
        <Phone>string</Phone>
        <Company>string</Company>
        <Address>string</Address>
        <PostIndex>string</PostIndex>
        <CityCode>int</CityCode>
      </Shipper>
      <Consignee>
        <Person>string</Person>
        <Phone>string</Phone>
        <Company>string</Company>
        <Address>string</Address>
        <PostIndex>string</PostIndex>
        <CityCode>int</CityCode>
      </Consignee>
      <Cost>decimal</Cost>
      <Description>string</Description>
      <CostCenter>int</CostCenter>
      <DeliveryCondition>None or Promptly or Saturday or Return</DeliveryCondition>
      <DeliveryComment>string</DeliveryComment>
      <Packages>
        <LWH>
          <PackageID>string</PackageID>
          <Weight>decimal</Weight>
          <Length>int</Length>
          <Width>int</Width>
          <Height>int</Height>
        </LWH>
        <LWH>
          <PackageID>string</PackageID>
          <Weight>decimal</Weight>
          <Length>int</Length>
          <Width>int</Width>
          <Height>int</Height>
        </LWH>
      </Packages>
      <EPDData>
        <Shipper>
          <INN>string</INN>
          <IsIndividual>boolean</IsIndividual>
        </Shipper>
        <Consignee>
          <INN>string</INN>
          <IsIndividual>boolean</IsIndividual>
        </Consignee>
        <CargoCountryOksmCode>string</CargoCountryOksmCode>
        <ReturnConsignee>
          <INN>string</INN>
          <IsIndividual>boolean</IsIndividual>
        </ReturnConsignee>
      </EPDData>
    </CreateWaybillWithDetails>
  </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>
    <CreateWaybillWithDetailsResponse xmlns="https://ed.major-express.ru/">
      <CreateWaybillWithDetailsResult>string</CreateWaybillWithDetailsResult>
    </CreateWaybillWithDetailsResponse>
  </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: 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>
    <CreateWaybillWithDetails xmlns="https://ed.major-express.ru/">
      <RequestID>guid</RequestID>
      <ClientInfo>string</ClientInfo>
      <Shipper>
        <Person>string</Person>
        <Phone>string</Phone>
        <Company>string</Company>
        <Address>string</Address>
        <PostIndex>string</PostIndex>
        <CityCode>int</CityCode>
      </Shipper>
      <Consignee>
        <Person>string</Person>
        <Phone>string</Phone>
        <Company>string</Company>
        <Address>string</Address>
        <PostIndex>string</PostIndex>
        <CityCode>int</CityCode>
      </Consignee>
      <Cost>decimal</Cost>
      <Description>string</Description>
      <CostCenter>int</CostCenter>
      <DeliveryCondition>None or Promptly or Saturday or Return</DeliveryCondition>
      <DeliveryComment>string</DeliveryComment>
      <Packages>
        <LWH>
          <PackageID>string</PackageID>
          <Weight>decimal</Weight>
          <Length>int</Length>
          <Width>int</Width>
          <Height>int</Height>
        </LWH>
        <LWH>
          <PackageID>string</PackageID>
          <Weight>decimal</Weight>
          <Length>int</Length>
          <Width>int</Width>
          <Height>int</Height>
        </LWH>
      </Packages>
      <EPDData>
        <Shipper>
          <INN>string</INN>
          <IsIndividual>boolean</IsIndividual>
        </Shipper>
        <Consignee>
          <INN>string</INN>
          <IsIndividual>boolean</IsIndividual>
        </Consignee>
        <CargoCountryOksmCode>string</CargoCountryOksmCode>
        <ReturnConsignee>
          <INN>string</INN>
          <IsIndividual>boolean</IsIndividual>
        </ReturnConsignee>
      </EPDData>
    </CreateWaybillWithDetails>
  </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>
    <CreateWaybillWithDetailsResponse xmlns="https://ed.major-express.ru/">
      <CreateWaybillWithDetailsResult>string</CreateWaybillWithDetailsResult>
    </CreateWaybillWithDetailsResponse>
  </soap12:Body>
</soap12:Envelope>