Monday, February 18, 2019
Innovative SMS Gateway & Messaging solutions


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 Python has been sent to us by a client which uses this script language to connect to our XML-gateway.

print 'Content-Type: text/html'
print # Blank line marking end of HTTP headers

import socket

HOST = '' # The remote host
PORT = 5061 # The same port as used by the server
userkey = #please fill in your USERKEY
password = #please enter your PASSWORD
originator = #please fill in the ORIGINATOR
recipient = #please insert the RECIPIENT here
text = #Your SMS Text

CONTENT="""<?xml version="1.0" encoding="ISO-8859-1"?>
    <Originator>"""+ str(originator) +"""</Originator>
    <PhoneNumber>"""+ str(recipient) +"""</PhoneNumber>
    <MessageData>"""+ str(text) +"""</MessageData>

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
s.send("POST /xmlsvr.asp HTTP/1.0\r\n")
s.send("Content-Type: text/xml\r\n")
s.send("Content-Length: "+str(length)+"\r\n\r\n")
print "Reply Received: "+ str(datarecv)

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