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





SendTextMessage - передача простого текстового 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>
<SendTextMessage xmlns="http://sms.avisosms.ru/gate.php">
<smsUser>smsUser</smsUser>
<password>password</password>
<destinationAddress>destinationAddress</destinationAddress>
<messageData>messageData</messageData>
<sourceAddress>sourceAddress</sourceAddress>
<deliveryReport>deliveryReport</deliveryReport>
<flashMessage>flashMessage</flashMessage>
<validityPeriod>validityPeriod</validityPeriod>
</SendTextMessage>
</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>
<SendTextMessageResponse xmlns="http://sms.avisosms.ru/gate.php">
<SendTextMessageResult>СommandStatus</SendTextMessageResult>
<messageId>
<string>messageId</string> 
</messageId> </SendTextMessageResponse> </soap:Body> </soap:Envelope>