SmsHostWs
Для получения полного списка операций щелкните здесь.
QuerySm
Возвращает состояние сообщений, ранее отправленных с помощью метода SumbitSm
Тест
Форма для тестирования доступна только для запросов от локальных компьютеров.SOAP 1.1
В следующем примере показаны запрос и ответ SOAP 1.1. Вместо элементов-заполнителей следует подставить фактические значения.
POST /Service/SmsHostWs.asmx HTTP/1.1 Host: api Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://sms-host.ru/QuerySm" <?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:Header> <Authentication xmlns="http://sms-host.ru/"> <User>string</User> <Password>string</Password> </Authentication> </soap:Header> <soap:Body> <QuerySm xmlns="http://sms-host.ru/"> <messageList> <WsQuerySm MessageId="guid" /> <WsQuerySm MessageId="guid" /> </messageList> </QuerySm> </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> <QuerySmResponse xmlns="http://sms-host.ru/"> <QuerySmResult> <WsQuerySmResp EndTime="dateTime" BeginTime="dateTime" PartErrorCount="unsignedByte" PartDeliveredCount="unsignedByte" PartSendCount="unsignedByte" StateName="string" StateCode="int" MessageId="guid" /> <WsQuerySmResp EndTime="dateTime" BeginTime="dateTime" PartErrorCount="unsignedByte" PartDeliveredCount="unsignedByte" PartSendCount="unsignedByte" StateName="string" StateCode="int" MessageId="guid" /> </QuerySmResult> </QuerySmResponse> </soap:Body> </soap:Envelope>