Friday, January 18, 2019


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

PHP | Python | ASP/VB-Script | VBscript Class | C# | Java | Jabber


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.


public class ASPSMS {

String xmlURL = "";

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


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();


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

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


  BufferedReader in = new BufferedReader(
                                         new InputStreamReader(

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

} catch (Exception ex) {
return xmlResult;

public static void main(String[] args) {
            ASPSMS testSMS = new ASPSMS();
            String xmlResult =

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/VB-Script | VBscript Class | C# | Java | Jabber
New User Registration

Click here for the ASPSMS new user registration.

Have you already registered? Log in with your user e-mail address and password.

Forgot Login Password?

Available SMS tools and interfaces for ASPSMS

Purpose and business examplesPDF
SMS tools for End Users
ASPSMS WinLog free
Microsoft Office Outlook 2013-2016: Email to SMSfree
Microsoft Office Outlook 2010 Mobile Servicefree
Microsoft Office Outlook 2007 Mobile Servicefree
SMSBLASTER web editionfree
SMS Blaster Windows Editionfree
SMS touch for iPhone and iPod touchShareware
ECO-SMS - Ökologische SMS!Shareware
Cybersystems mscrmSMSsee price list for details
Jabber-Client Chatopus for Palm OSsmall one-time payment
delight Software GmbHsee price list for details
ASPSMS Widget for Macfree
SMS scripts and interfaces for developers
ASPSMS Dot Net Assembly on NuGet free
C# Microsoft ASP.NET Identity MVC (for SOAP)free
Node.js interface for ASPSMSfree
PHP Class for ASPSMS SOAP web servicefree
aspsms.dll (Active-X)free
SOAP Web Servicefree
ASPSMS SMTP Interfacefree
VBscript Class (ASP)free
PHP - Python - C# - Javafree
Jabber to SMS for Server Adminsfree (open source)
SMS Blaster Visual Basic Source Codefree
Network coverage
Supported networks around the world
Katharinengasse 10
CH - 9004 St.Gallen
Phone: +41 71 246 56 56
Fax: +41 71 246 56 57
Founded: 1995
Company Number: CH-
VAT-Number: CHE-102.692.722 MWST

Mastercard - Mastercard Securecode Mastercard - Mastercard Securecode Visa Visa - Verified by Visa Diners Club American Express PayPal Postcard Bank Transfer

Swiss Quality

OFCOM registered Telecommunications Service Provider (254900005).

ASPSMS is a product of VADIAN.NET AG (founded in 1995), a Swiss based Internet and Mobile Solutions pioneer. Thus, all data collected from you are automatically subject ofthe strict privacy policies of Switzerland. ASPSMS is Swiss technology that is fully developed in Switzerland. The support team also works in Switzerland. VADIAN.NET AG is today one of the leading global providers of SMS solutions with more than 200000 satisfied business clients. The product ASPSMS was launched in 2001.