Sonntag, 05. Februar 2012



































Microsoft Outlook 2010






asptoken Logo



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













 


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



 
Java

The following example in Java has been sent to us by a client which uses this script language to connect to our XML-gateway. As the script has been provided by a client, please be aware that you are going to use this script on your own risk.
import java.net.*;
import java.io.*;

public class ASPSMS {

String xmlURL = "http://xml2.aspsms.com:5061/xmlsvr.asp";

// insert required userkey,password and originator
String userkey = "";
String password = "";
String originator = "";

ASPSMS() {
}

public String send( int idsms,
                    String number,
                    String message,
                    int flashing,
                    String URLDeliveryNotification,
                    String URLNonDeliveryNotification) {

String content =
  "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n"
+ "<aspsms>\r\n"
+ "<Userkey>" + userkey + "</Userkey>\r\n"
+ "<Password>" + password + "</Password>\r\n"
+ "<Originator>" + originator + "</Originator>\r\n"
+ "<Recipient>\r\n"
+ "<PhoneNumber>"
+ number
+ "</PhoneNumber>\r\n"
+ "<TransRefNumber>"
+ idsms
+ "</TransRefNumber>\r\n"
+ "</Recipient>\r\n"
+ "<MessageData>"
+ message
+ "</MessageData>\r\n"
+ "<FlashingSMS>"
+ flashing
+ "</FlashingSMS>\r\n"
+ "<URLDeliveryNotification>"
+ URLDeliveryNotification
+ "id=</URLDeliveryNotification>\r\n"
+ "<URLNonDeliveryNotification>"
+ URLNonDeliveryNotification
+ "id=</URLNonDeliveryNotification>\r\n"
+ "<Action>SendTextSMS</Action>\r\n"
+ "</aspsms>\r\n";

InetAddress inetAddr = null;
String xmlResult = "";

try {
  URL aspsmsURL = new URL(xmlURL);
  URLConnection aspsmsCon = aspsmsURL.openConnection();

  aspsmsCon.setRequestProperty("Content-Type","text/xml");
  aspsmsCon.setDoOutput(true);
  aspsmsCon.setDoInput(true);

  PrintWriter out = new PrintWriter(aspsmsCon.getOutputStream());

  char[] buffer = new char[1024*10];
  buffer = content.toCharArray();

  out.write(buffer,0,content.length());
  out.close();

  BufferedReader in = new BufferedReader(
                                         new InputStreamReader(
                                         aspsmsCon.getInputStream()));

  String inputLine = null;
  while ((inputLine = in.readLine()) != null)
  {
    xmlResult = xmlResult + inputLine;
    System.out.println(inputLine); }

  in.close();
} catch (Exception ex) {
  System.out.println(ex.getMessage());
}
return xmlResult;
}

public static void main(String[] args) {
            ASPSMS testSMS = new ASPSMS();
            String xmlResult =
testSMS.send(refnumber,handynumber,message,flashing,urldelivery_yes,urldelivery_no);
}
}


 

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


SMS Tools und Interfaces für ASPSMS

SMS Tools für Endanwender
NamePreis
NEW: Microsoft Office Outlook 2010 Mobile Servicegratis
Microsoft Office Outlook 2007 Mobile Servicegratis
SMS Blaster Web Editiongratis
SMS Blaster Windows Editiongratis
SMS touch for iPhone and iPod touchShareware
ECO-SMS - Ökologische SMS!Shareware
@SMS Outlook PluginShareware
Cybersystems mscrmSMSsiehe Preisliste
swissjabber for End Usersgratis (open source)
Jabber-Client Chatopus for Palm OSkleine Gebühr
delight Software GmbHsiehe Preisliste
ASPSMS Widget for Macgratis
SKyPRO eSMS: SMS Gateway for mail serverkleine Gebühr
SMS Scripts und Schnittstellen für Entwickler
NamePreis
aspsms.dll (Active-X)gratis
SOAP Web Servicegratis
XML-Interfacegratis
ASPSMS SMTP Interfacegratis
VBscript Class (ASP)gratis
HTTPgratis
PHP - Python - C# - Javagratis
Jabber to SMS for Server Adminsgratis (open source)
SMS Blaster Visual Basic Source Codegratis
NEW: ASPTOKENgratis
Premium SMS GatewayDetails