This blog is about the dotnet.all types of codes,news about dotnet including asp.net,vb.net,c# and know about new dotnet technology.programing in asp.net,vb.net,c#, ajax, AJAX tech support for .net and discuss the new technology in dotnet.ncluding asp.net,vb.net,c# and know about new dotnet technology.programing in asp.net,vb.net,c#, ajax, AJAX tech support for .net and discuss the new technology in dotnet.asp.net programming,dot net programming,dotnet programs,dotnet source code,source code.

Free Hosting

Free Hosting

Friday, May 16, 2008

Free Webservice to Send SMS

If you neew your webapplication to send SMS on mobile phones, here is the free webservice to do that.
Service Path: http://www.webservicex.net/SendSMS.asmx?WSDL

Here i am describing how to use it in your asp.net application through C# implementation.

Steps to refer webservice.
1. Goto Explores window in Visual Studio.
2. Right click on project and select Add Web Reference from the context menu that opened after right clicking
3. Add web reference window will be opend. Now paste "http://www.webservicex.net/SendSMS.asmx?WSDL" on url address bar and click on go button.
4.After few seconds depending on your internet speed the service descrition and method will be shown to you. Just click on Add reference button to add this service to your project.

C# Code to implement this service
net.webservicex.www.SendSMS smsIndia = new net.webservicex.www.SendSMS();
smsIndia.SendSMSToIndia("mobile no","your email id", "Message");


Note: You can send SMS to India only and Network Covered: Airtel,Idea Cellular,Skycell ,RPG Cellular,Hutch now vodaphone,Celforce / Fascel,BPL Mobile,Escotel.

3 comments:

Rajini said...

sorry it is not working. pls explain in detail way

Unknown said...

It is not working. it iis giving following error message:

messageSystem.Net.WebException: The underlying connection was closed: Unable to connect to the remote server. at System.Net.HttpWebRequest.CheckFinalStatus() at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) at System.Net.HttpWebRequest.GetRequestStream() at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at TestForSMS.net.webservicex.www.SendSMS.SendSMSToIndia(String MobileNumber, String FromEmailAddress, String Message) in c:\inetpub\wwwroot\TestForSMS\Web References\net.webservicex.www\Reference.cs:line 37 at TestForSMS.WebForm1.btnSend_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\testforsms\webform1.aspx.cs:line 69


Pls. give the solution.
Gaurav

Anonymous said...

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!

dotnet(.Net) Project Source code Downloads and Tutorials

Email Subscrption



Enter your email address:

Delivered by FeedBurner

Feedburner Count

Unique Visitor

Design by araba-cı | MoneyGenerator Blogger Template by GosuBlogger