О сервисе Тарифы Требования Операторы Демо





GetMessageState – запрос на получение статус отправленного SMS-сообщения

Запрос

POST /gate.php HTTP/1.1
Host: sms.avisosms.ru
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://sms.avisosms.ru/gate.php"

<?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>
<GetMessageState xmlns="http://sms.avisosms.ru/gate.php">
<smsUser>smsUser</smsUser>
<password>password</password>
<messageId>messageId</messageId>
</GetMessageState>
</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>
<GetMessageStateResponse xmlns="http://sms.avisosms.ru/gate.php">
<GetMessageStateResult> СommandStatus </GetMessageStateResult>
<reportedDateUtc>reportedDateUtc</reportedDateUtc>
<messageState>messageState</messageState>
</GetMessageStateResponse>
</soap:Body>
</soap:Envelope>