|
||||
Receiving SMS Text Messages Web Service SOAP API |
With a two-way service your
customers can send mobile originated (MO) SMS
text messages to an assigned two-way telephone number, or short code,
and the messages will then be immediately forwarded to you using SOAP over HTTP(S).
SOAP is an XML-based protocol for the exchange of information in a decentralized, distributed environment. Because of SOAP's flexibility and extensibility it is well suited to the rapidly developing messaging market. We offer an extensive and flexible SOAP API for receiving SMS. The WSDL and XSD are available below and enable rapid integration using modern SOAP development toolkits like gSOAP and .NET. Web Service Definition Language and SchemaThe WSDL and XSD files are available at The WSDL file is the definitive resource for determining the API specification. ConfigurationWe need to know the following details before we can deliver the MO messages to you. You can configure this yourself on the website as part of the two-way set-up when chosing SOAP as the delivery method.
SOAP Request Elements
Any other elements that may be included can safely be ignored. SOAP Response Elements
Example SOAP RequestPOST /cgi-bin/delivermessage.pl HTTP/1.0 Host: www.somecompany.com Content-type: text/soap; charset="utf-8" Content-length: 978 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:ns2="http://www.csoft.co.uk/dtd/sendsms5.xsd"> <SOAP-ENV:Body> <DeliverMessage xmlns="http://www.csoft.co.uk/dtd/sendsms5.xsd"> <Username xsi:type="xsd:string">ANother.123456</Username> <PIN xsi:type="xsd:string">12345678</PIN> <Recipient xsi:type="ns2:Recipient"> <SendTo xsi:type="xsd:string">447700912345</SendTo> </Recipient> <Message xsi:type="ns2:Message"> <TextMessage xsi:type="xsd:string">another text message</TextMessage> </Message> <ReplyTo xsi:type="xsd:string">447624806286</ReplyTo> </DeliverMessage> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Example SOAP ResponseHTTP/1.0 200 OK Content-type: text/soap; charset="utf-8" Content-length: 681 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.csoft.co.uk/dtd/sendsms5.xsd"> <SOAP-ENV:Body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <ns2:DeliverMessageResponse> <Report xsi:type="xsd:int">0</Report> <MessageIdentifier xsi:type="xsd:string">3C7D98A4</MessageIdentifier> <Text xsi:type="xsd:string"></Text> </ns2:DeliverMessageResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
|||
| SMS This page was last modified at 9:45 UTC on Tuesday August 21, 2007 | ||||