Thursday, August 28, 2008



























ActiveX-Component aspsms.dll
SOAP Webservice
XML
XML
HTTP-Post
HTTP-Post


global two-way sms
get a new number
my mobile numbers
inbox and statistic

















WAP-Push Example

Due to a lot of MMS information requests we released an example for a popular technical workaround.
WAP-Push example based on a ASP/IIS VB-Script.

Permission Marketing

We do also high volume targeted SMS deliveries, time and volume independent.

For further information please contact our Key Account Management.

 


Here some XML examples for some script languages like PHP, Python, ASP, VBscript-Class, C#, Java, Jabber...

PHP | Python | ASP | VBscript Class | C# | Java | Jabber



 
C#

Please notice that this C# example is not a complete script.
It only shows the method of how the connect can be made.
The script has been provided by a client, so please be
aware that you are going to use this script on your own
risk.

C# Example 1:

/*
 * SunSMS.cs Copyright (C) 2004 Manuel Kaderli
 * http://www.suntsu.ch
 *
 * This program is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation;
 * either version 2 of the License, or (at your option) any
 * later version.
 *
 * This program is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE. See the GNU General Public License for more
 * details.
 */
using System;
using System.Xml;
using System.Net.Sockets;
using System.IO;
using System.Text;
using System.Net;

class SunSMS
{

  public static int port = 5061;
  public static string host = "xml1.aspsms.com";
  public static string url = "/xmlsvr.asp";

  public static void Main(string[] args)
  {
    SunSMS sms = new SunSMS();
    sms.sendNewSms();
  }

  private void sendNewSms()
	{
      string message =
      "my first sms with c#";

    HttpWebRequest httpRequest = (HttpWebRequest)
       WebRequest.Create("http://" + host + ":" + port + url);
    httpRequest.Method = "POST";
    httpRequest.ContentType = "text/xml";
    Stream requestStream = httpRequest.GetRequestStream();
    XmlTextWriter xmlTextWriter = new XmlTextWriter(requestStream,
       System.Text.Encoding.UTF8);
    xmlTextWriter.WriteStartDocument();
    xmlTextWriter.WriteStartElement("aspsms");

    xmlTextWriter.WriteStartElement("Userkey");
    xmlTextWriter.WriteString("your userkey");
    xmlTextWriter.WriteEndElement();

    xmlTextWriter.WriteStartElement("Password");
    xmlTextWriter.WriteString("your password");
    xmlTextWriter.WriteEndElement();

    xmlTextWriter.WriteStartElement("Recipient");
    xmlTextWriter.WriteStartElement("PhoneNumber");
    xmlTextWriter.WriteString("004179xxxxxxx");
    xmlTextWriter.WriteEndElement();
    xmlTextWriter.WriteEndElement();

    xmlTextWriter.WriteStartElement("MessageData");
    xmlTextWriter.WriteString(message);
    xmlTextWriter.WriteEndElement();

    xmlTextWriter.WriteStartElement("Action");
    xmlTextWriter.WriteString("SendTextSMS");
    xmlTextWriter.WriteEndElement();

    xmlTextWriter.WriteEndElement();

    xmlTextWriter.Close();
    HttpWebResponse httpResponse = (HttpWebResponse)
        httpRequest.GetResponse();
    Console.WriteLine("Response is:");
    StreamReader streamReader = new
        StreamReader(httpResponse.GetResponseStream(), System.Text.Encoding.UTF8);
    Console.WriteLine(streamReader.ReadToEnd());
    streamReader.Close();
    httpResponse.Close();
  }
}


 


C# Example 2:

/*
 * SMSclass.txt Copyright (C) 2005 uga
 *
 * This program is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation;
 * either version 2 of the License, or (at your option) any
 * later version.
 *
 * This program is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE. See the GNU General Public License for more
 * details.
 */
Download: SMSclass.txt


 

Limitations of Liability
In no event shall we be liable for any damages whatsoever, including - but not restricted to - lost revenue or profits or other direct, indirect, special, incidental or consequential damages, even if they have been advised of the possibility of such damages, except to the extent invariable law, if any, provides otherwise.


 

More XML examples:

PHP | Python | ASP | VBscript Class | C# | Java | Jabber


Available SMS tools and interfaces for ASPSMS

SMS tools for End Users
NamePricing
SMS Blaster Web Editionfree
SMS Blaster Windows Editionfree
@SMS Outlook PluginShareware
Jabber to SMS for End Usersfree (open source)
Jabber-Client Chatopus for Palm OSsmall one-time payment
ASPSMS Widget for Macfree
SKyPRO eSMS: SMS Gateway for mail serversmall one-time payment
Testingpoint Hosting Monitoring Softwaresmall one-time payment
SMS scripts and interfaces for developers
NamePricing
aspsms.dll (Active-X)free
SOAP Web Servicefree
XML-Interfacefree
ASPSMS SMTP Interfacefree
VBscript Class (ASP)free
HTTPfree
PHP - Python - C# - Javafree
Jabber to SMS for Server Adminsfree (open source)
SMS Blaster Visual Basic Source Codefree