EDClientsWebService
Click here for a complete list of operations.
CreateWaybill_Consignee
Создание новой накладной.
Параметры:
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: ed.major-express.ru
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://ed.major-express.ru/CreateWaybill_Consignee"
<?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_Consignee 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>int</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>
<ReturnConsignee>
<INN>string</INN>
<IsIndividual>boolean</IsIndividual>
</ReturnConsignee>
</EPDData>
</CreateWaybill_Consignee>
</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_ConsigneeResponse xmlns="https://ed.major-express.ru/">
<CreateWaybill_ConsigneeResult>string</CreateWaybill_ConsigneeResult>
</CreateWaybill_ConsigneeResponse>
</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>
<CreateWaybill_Consignee 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>int</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>
<ReturnConsignee>
<INN>string</INN>
<IsIndividual>boolean</IsIndividual>
</ReturnConsignee>
</EPDData>
</CreateWaybill_Consignee>
</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_ConsigneeResponse xmlns="https://ed.major-express.ru/">
<CreateWaybill_ConsigneeResult>string</CreateWaybill_ConsigneeResult>
</CreateWaybill_ConsigneeResponse>
</soap12:Body>
</soap12:Envelope>