SMS_API
Click here for a complete list of operations.
SendSMS
Method used to send an SMS direct to a given number (or numbers) at the given cost, scheduled to send at given date and time
Test
The test form is only available for methods with primitive types as parameters.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /Services/v1/SMS-API.asmx HTTP/1.1 Host: www.anytext.co.uk Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.anytext.co.uk/services/v1/SendSMS" <?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> <SendSMS xmlns="http://www.anytext.co.uk/services/v1/"> <reference>string</reference> <message>string</message> <to> <string>string</string> <string>string</string> </to> <senderID>string</senderID> <when>dateTime</when> <cost>int</cost> <creditsPerRecip>int</creditsPerRecip> <username>string</username> <password>string</password> <testmode>None or Success or Failure or InsufficientCredit</testmode> </SendSMS> </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> <SendSMSResponse xmlns="http://www.anytext.co.uk/services/v1/"> <SendSMSResult>string</SendSMSResult> </SendSMSResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /Services/v1/SMS-API.asmx HTTP/1.1 Host: www.anytext.co.uk 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> <SendSMS xmlns="http://www.anytext.co.uk/services/v1/"> <reference>string</reference> <message>string</message> <to> <string>string</string> <string>string</string> </to> <senderID>string</senderID> <when>dateTime</when> <cost>int</cost> <creditsPerRecip>int</creditsPerRecip> <username>string</username> <password>string</password> <testmode>None or Success or Failure or InsufficientCredit</testmode> </SendSMS> </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> <SendSMSResponse xmlns="http://www.anytext.co.uk/services/v1/"> <SendSMSResult>string</SendSMSResult> </SendSMSResponse> </soap12:Body> </soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /Services/v1/SMS-API.asmx/SendSMS?reference=string&message=string&to=string&to=string&senderID=string&when=string&cost=string&creditsPerRecip=string&username=string&password=string&testmode=string HTTP/1.1 Host: www.anytext.co.uk
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://www.anytext.co.uk/services/v1/">string</string>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /Services/v1/SMS-API.asmx/SendSMS HTTP/1.1 Host: www.anytext.co.uk Content-Type: application/x-www-form-urlencoded Content-Length: length reference=string&message=string&to=string&to=string&senderID=string&when=string&cost=string&creditsPerRecip=string&username=string&password=string&testmode=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://www.anytext.co.uk/services/v1/">string</string>