SOAPWebService


Для получения полного списка операций щелкните здесь.

SaveOrder

Сохранение в системе нового заказа.

Тест

Чтобы протестировать операцию с использованием HTTP-протокола POST, нажмите кнопку "Запуск".
Параметр Значение
login:
password:
takeDate:
takeTime:
deliveryDate:
deliveryTime:
department:
project:
sender:
senderOfficial:
senderGeography:
senderAddress:
senderIndex:
senderPhone:
senderEMail:
senderInfo:
recipient:
recipientOfficial:
recipientGeography:
recipientAddress:
recipientIndex:
recipientPhone:
recipientEMail:
recipientInfo:
urgency:
payer:
paymentMethod:
typeOfCargo:
withReturn:
weight:
height:
length:
width:
cargoDescription:
cargoPackageQty:
insuranceRate:
declaredValueRate:
COD:
CODPayer:
CODDescription:
clientNumber:
agent:
senderKladr:
recipientKladr:
items:

SOAP 1.1

В следующем примере показаны запрос и ответ SOAP 1.1. Вместо элементов-заполнителей следует подставить фактические значения.

POST /SOAPWebService.asmx HTTP/1.1
Host: 79.174.68.35
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://cargo3.ru/SaveOrder"

<?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>
    <SaveOrder xmlns="http://cargo3.ru/">
      <login>string</login>
      <password>string</password>
      <takeDate>string</takeDate>
      <takeTime>string</takeTime>
      <deliveryDate>string</deliveryDate>
      <deliveryTime>string</deliveryTime>
      <department>string</department>
      <project>string</project>
      <sender>string</sender>
      <senderOfficial>string</senderOfficial>
      <senderGeography>string</senderGeography>
      <senderAddress>string</senderAddress>
      <senderIndex>string</senderIndex>
      <senderPhone>string</senderPhone>
      <senderEMail>string</senderEMail>
      <senderInfo>string</senderInfo>
      <recipient>string</recipient>
      <recipientOfficial>string</recipientOfficial>
      <recipientGeography>string</recipientGeography>
      <recipientAddress>string</recipientAddress>
      <recipientIndex>string</recipientIndex>
      <recipientPhone>string</recipientPhone>
      <recipientEMail>string</recipientEMail>
      <recipientInfo>string</recipientInfo>
      <urgency>string</urgency>
      <payer>int</payer>
      <paymentMethod>int</paymentMethod>
      <typeOfCargo>string</typeOfCargo>
      <withReturn>boolean</withReturn>
      <weight>float</weight>
      <height>float</height>
      <length>float</length>
      <width>float</width>
      <cargoDescription>string</cargoDescription>
      <cargoPackageQty>int</cargoPackageQty>
      <insuranceRate>float</insuranceRate>
      <declaredValueRate>float</declaredValueRate>
      <COD>float</COD>
      <CODPayer>string</CODPayer>
      <CODDescription>string</CODDescription>
      <clientNumber>string</clientNumber>
      <agent>string</agent>
      <senderKladr>string</senderKladr>
      <recipientKladr>string</recipientKladr>
      <items>string</items>
    </SaveOrder>
  </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>
    <SaveOrderResponse xmlns="http://cargo3.ru/">
      <SaveOrderResult>
        <number>string</number>
        <error>boolean</error>
        <errorInfo>string</errorInfo>
      </SaveOrderResult>
    </SaveOrderResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

В следующем примере показаны запрос и ответ SOAP 1,2. Вместо элементов-заполнителей следует подставить фактические значения.

POST /SOAPWebService.asmx HTTP/1.1
Host: 79.174.68.35
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>
    <SaveOrder xmlns="http://cargo3.ru/">
      <login>string</login>
      <password>string</password>
      <takeDate>string</takeDate>
      <takeTime>string</takeTime>
      <deliveryDate>string</deliveryDate>
      <deliveryTime>string</deliveryTime>
      <department>string</department>
      <project>string</project>
      <sender>string</sender>
      <senderOfficial>string</senderOfficial>
      <senderGeography>string</senderGeography>
      <senderAddress>string</senderAddress>
      <senderIndex>string</senderIndex>
      <senderPhone>string</senderPhone>
      <senderEMail>string</senderEMail>
      <senderInfo>string</senderInfo>
      <recipient>string</recipient>
      <recipientOfficial>string</recipientOfficial>
      <recipientGeography>string</recipientGeography>
      <recipientAddress>string</recipientAddress>
      <recipientIndex>string</recipientIndex>
      <recipientPhone>string</recipientPhone>
      <recipientEMail>string</recipientEMail>
      <recipientInfo>string</recipientInfo>
      <urgency>string</urgency>
      <payer>int</payer>
      <paymentMethod>int</paymentMethod>
      <typeOfCargo>string</typeOfCargo>
      <withReturn>boolean</withReturn>
      <weight>float</weight>
      <height>float</height>
      <length>float</length>
      <width>float</width>
      <cargoDescription>string</cargoDescription>
      <cargoPackageQty>int</cargoPackageQty>
      <insuranceRate>float</insuranceRate>
      <declaredValueRate>float</declaredValueRate>
      <COD>float</COD>
      <CODPayer>string</CODPayer>
      <CODDescription>string</CODDescription>
      <clientNumber>string</clientNumber>
      <agent>string</agent>
      <senderKladr>string</senderKladr>
      <recipientKladr>string</recipientKladr>
      <items>string</items>
    </SaveOrder>
  </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>
    <SaveOrderResponse xmlns="http://cargo3.ru/">
      <SaveOrderResult>
        <number>string</number>
        <error>boolean</error>
        <errorInfo>string</errorInfo>
      </SaveOrderResult>
    </SaveOrderResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

В следующем примере показан HTTP-запрос GET и ответ на него. Вместо элементов-заполнителей следует подставить фактические значения.

GET /SOAPWebService.asmx/SaveOrder?login=string&password=string&takeDate=string&takeTime=string&deliveryDate=string&deliveryTime=string&department=string&project=string&sender=string&senderOfficial=string&senderGeography=string&senderAddress=string&senderIndex=string&senderPhone=string&senderEMail=string&senderInfo=string&recipient=string&recipientOfficial=string&recipientGeography=string&recipientAddress=string&recipientIndex=string&recipientPhone=string&recipientEMail=string&recipientInfo=string&urgency=string&payer=string&paymentMethod=string&typeOfCargo=string&withReturn=string&weight=string&height=string&length=string&width=string&cargoDescription=string&cargoPackageQty=string&insuranceRate=string&declaredValueRate=string&COD=string&CODPayer=string&CODDescription=string&clientNumber=string&agent=string&senderKladr=string&recipientKladr=string&items=string HTTP/1.1
Host: 79.174.68.35
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<ResultDocument xmlns="http://cargo3.ru/">
  <number>string</number>
  <error>boolean</error>
  <errorInfo>string</errorInfo>
</ResultDocument>

HTTP POST

В следующем примере показан HTTP-запрос POST и ответ на него. Вместо элементов-заполнителей следует подставить фактические значения.

POST /SOAPWebService.asmx/SaveOrder HTTP/1.1
Host: 79.174.68.35
Content-Type: application/x-www-form-urlencoded
Content-Length: length

login=string&password=string&takeDate=string&takeTime=string&deliveryDate=string&deliveryTime=string&department=string&project=string&sender=string&senderOfficial=string&senderGeography=string&senderAddress=string&senderIndex=string&senderPhone=string&senderEMail=string&senderInfo=string&recipient=string&recipientOfficial=string&recipientGeography=string&recipientAddress=string&recipientIndex=string&recipientPhone=string&recipientEMail=string&recipientInfo=string&urgency=string&payer=string&paymentMethod=string&typeOfCargo=string&withReturn=string&weight=string&height=string&length=string&width=string&cargoDescription=string&cargoPackageQty=string&insuranceRate=string&declaredValueRate=string&COD=string&CODPayer=string&CODDescription=string&clientNumber=string&agent=string&senderKladr=string&recipientKladr=string&items=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<ResultDocument xmlns="http://cargo3.ru/">
  <number>string</number>
  <error>boolean</error>
  <errorInfo>string</errorInfo>
</ResultDocument>