SDE_Messaging


Click here for a complete list of operations.

SendSMSAttachment

Sends an SMS with an attachment. Attachment can be a file or Url and will convert attachment to short url. MsgTemplate can be used to embed the attachment. MsgTemplate ex: 'Click @smsurl for more information'

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 /messaging.asmx HTTP/1.1
Host: msg.sdetech.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://Messaging.sdetech.com/SendSMSAttachment"

<?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>
    <SendSMSAttachment xmlns="https://Messaging.sdetech.com/">
      <APIKey>string</APIKey>
      <PhoneNumber>string</PhoneNumber>
      <FromSMS>string</FromSMS>
      <MsgTemplate>string</MsgTemplate>
      <ClientUserID>string</ClientUserID>
      <filebytes>base64Binary</filebytes>
      <FileName>string</FileName>
      <Url>string</Url>
      <Campaign>string</Campaign>
      <AttachmentExpirationDays>int</AttachmentExpirationDays>
    </SendSMSAttachment>
  </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>
    <SendSMSAttachmentResponse xmlns="https://Messaging.sdetech.com/">
      <SendSMSAttachmentResult>xml</SendSMSAttachmentResult>
    </SendSMSAttachmentResponse>
  </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 /messaging.asmx HTTP/1.1
Host: msg.sdetech.com
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>
    <SendSMSAttachment xmlns="https://Messaging.sdetech.com/">
      <APIKey>string</APIKey>
      <PhoneNumber>string</PhoneNumber>
      <FromSMS>string</FromSMS>
      <MsgTemplate>string</MsgTemplate>
      <ClientUserID>string</ClientUserID>
      <filebytes>base64Binary</filebytes>
      <FileName>string</FileName>
      <Url>string</Url>
      <Campaign>string</Campaign>
      <AttachmentExpirationDays>int</AttachmentExpirationDays>
    </SendSMSAttachment>
  </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>
    <SendSMSAttachmentResponse xmlns="https://Messaging.sdetech.com/">
      <SendSMSAttachmentResult>xml</SendSMSAttachmentResult>
    </SendSMSAttachmentResponse>
  </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 /messaging.asmx/SendSMSAttachment?APIKey=string&PhoneNumber=string&FromSMS=string&MsgTemplate=string&ClientUserID=string&filebytes=string&filebytes=string&FileName=string&Url=string&Campaign=string&AttachmentExpirationDays=string HTTP/1.1
Host: msg.sdetech.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0"?>
xml

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /messaging.asmx/SendSMSAttachment HTTP/1.1
Host: msg.sdetech.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

APIKey=string&PhoneNumber=string&FromSMS=string&MsgTemplate=string&ClientUserID=string&filebytes=string&filebytes=string&FileName=string&Url=string&Campaign=string&AttachmentExpirationDays=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0"?>
xml