|
|
||||||
Sending SMS basics using Java class
RoutoMessaging provides you with sms gateway integration tools as ready-made scripts available to help you managing connection to our SMS gateway over your chosen programming language. These scripts as developer solution all work with the HTTP application. Join us now and get 10 SMS to test our SMS Gateway service.
Use the Java Language code sample bellow to send sms trough RoutoMessaging SMS Gateway. Register for an HTTP API account and you will immediately receive 10 test messages to try our service.
Send SMS with Java Language:
<html>
<head>
<title>Routo</title>
</head>
<body>
<h1>Routo Telecom</h1>
<br/><br/>
<!-- Include Routo SMS class-->
<jsp:useBean id="sms" class="routosms.RoutoSMSTelecom" />
<!-- Setting SMS parameters-->
<% routosms.RoutoSMSTelecom routo = new routosms.RoutoSMSTelecom();%>
<!-- creating object-->
<% routo.SetUser("your_username");%>
<% routo.SetPass("your_password");%>
<% routo.SetNumber("44791212121212");%>
<% routo.SetOwnNumber("44792838383838");%> <!-- optional-->
<% routo.SetType("SMS");%> <!-- optional-->
<% routo.SetMessage(message);%>
<!-- Send SMS and print result-->
<%=routo.Send()%>
</body> </html>
<head>
<title>Routo</title>
</head>
<body>
<h1>Routo Telecom</h1>
<br/><br/>
<!-- Include Routo SMS class-->
<jsp:useBean id="sms" class="routosms.RoutoSMSTelecom" />
<!-- Setting SMS parameters-->
<% routosms.RoutoSMSTelecom routo = new routosms.RoutoSMSTelecom();%>
<!-- creating object-->
<% routo.SetUser("your_username");%>
<% routo.SetPass("your_password");%>
<% routo.SetNumber("44791212121212");%>
<% routo.SetOwnNumber("44792838383838");%> <!-- optional-->
<% routo.SetType("SMS");%> <!-- optional-->
<% routo.SetMessage(message);%>
<!-- Send SMS and print result-->
<%=routo.Send()%>
</body> </html>
© 2010 Routo Telecommunications Ltd.
RoutoMessaging ® 2010.






