SOAPWebService
Для получения полного списка операций щелкните здесь.
Tracking
Отслеживание состояния грузов по номерам заказов, накладных и консолидаций.
Тест
Чтобы протестировать операцию с использованием HTTP-протокола POST, нажмите кнопку "Запуск".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/Tracking" <?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> <Tracking xmlns="http://cargo3.ru/"> <login>string</login> <password>string</password> <documentType>string</documentType> <number>string</number> <numberType>string</numberType> </Tracking> </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> <TrackingResponse xmlns="http://cargo3.ru/"> <TrackingResult> <documents> <ResultTrackingDocument> <number>string</number> <clientNumber>string</clientNumber> <agentNumber>string</agentNumber> <agentInfo>string</agentInfo> <name>string</name> <packages xsi:nil="true" /> <history xsi:nil="true" /> <error>boolean</error> <errorInfo>string</errorInfo> </ResultTrackingDocument> <ResultTrackingDocument> <number>string</number> <clientNumber>string</clientNumber> <agentNumber>string</agentNumber> <agentInfo>string</agentInfo> <name>string</name> <packages xsi:nil="true" /> <history xsi:nil="true" /> <error>boolean</error> <errorInfo>string</errorInfo> </ResultTrackingDocument> </documents> <error>boolean</error> <errorInfo>string</errorInfo> </TrackingResult> </TrackingResponse> </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> <Tracking xmlns="http://cargo3.ru/"> <login>string</login> <password>string</password> <documentType>string</documentType> <number>string</number> <numberType>string</numberType> </Tracking> </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> <TrackingResponse xmlns="http://cargo3.ru/"> <TrackingResult> <documents> <ResultTrackingDocument> <number>string</number> <clientNumber>string</clientNumber> <agentNumber>string</agentNumber> <agentInfo>string</agentInfo> <name>string</name> <packages xsi:nil="true" /> <history xsi:nil="true" /> <error>boolean</error> <errorInfo>string</errorInfo> </ResultTrackingDocument> <ResultTrackingDocument> <number>string</number> <clientNumber>string</clientNumber> <agentNumber>string</agentNumber> <agentInfo>string</agentInfo> <name>string</name> <packages xsi:nil="true" /> <history xsi:nil="true" /> <error>boolean</error> <errorInfo>string</errorInfo> </ResultTrackingDocument> </documents> <error>boolean</error> <errorInfo>string</errorInfo> </TrackingResult> </TrackingResponse> </soap12:Body> </soap12:Envelope>
HTTP GET
В следующем примере показан HTTP-запрос GET и ответ на него. Вместо элементов-заполнителей следует подставить фактические значения.
GET /SOAPWebService.asmx/Tracking?login=string&password=string&documentType=string&number=string&numberType=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"?> <ResultTracking xmlns="http://cargo3.ru/"> <documents> <ResultTrackingDocument> <number>string</number> <clientNumber>string</clientNumber> <agentNumber>string</agentNumber> <agentInfo>string</agentInfo> <name>string</name> <packages> <Package d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <Package d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </packages> <history> <TrackingEvent d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <TrackingEvent d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </history> <error>boolean</error> <errorInfo>string</errorInfo> </ResultTrackingDocument> <ResultTrackingDocument> <number>string</number> <clientNumber>string</clientNumber> <agentNumber>string</agentNumber> <agentInfo>string</agentInfo> <name>string</name> <packages> <Package d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <Package d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </packages> <history> <TrackingEvent d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <TrackingEvent d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </history> <error>boolean</error> <errorInfo>string</errorInfo> </ResultTrackingDocument> </documents> <error>boolean</error> <errorInfo>string</errorInfo> </ResultTracking>
HTTP POST
В следующем примере показан HTTP-запрос POST и ответ на него. Вместо элементов-заполнителей следует подставить фактические значения.
POST /SOAPWebService.asmx/Tracking HTTP/1.1 Host: 79.174.68.35 Content-Type: application/x-www-form-urlencoded Content-Length: length login=string&password=string&documentType=string&number=string&numberType=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <ResultTracking xmlns="http://cargo3.ru/"> <documents> <ResultTrackingDocument> <number>string</number> <clientNumber>string</clientNumber> <agentNumber>string</agentNumber> <agentInfo>string</agentInfo> <name>string</name> <packages> <Package d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <Package d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </packages> <history> <TrackingEvent d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <TrackingEvent d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </history> <error>boolean</error> <errorInfo>string</errorInfo> </ResultTrackingDocument> <ResultTrackingDocument> <number>string</number> <clientNumber>string</clientNumber> <agentNumber>string</agentNumber> <agentInfo>string</agentInfo> <name>string</name> <packages> <Package d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <Package d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </packages> <history> <TrackingEvent d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <TrackingEvent d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </history> <error>boolean</error> <errorInfo>string</errorInfo> </ResultTrackingDocument> </documents> <error>boolean</error> <errorInfo>string</errorInfo> </ResultTracking>