5 Replies - 27351 Views - Last Post: 28 March 2011 - 10:30 PM Rate Topic: -----

#1 tonyloop  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 08-May 07

SMS APPLICATION IN C#

Posted 18 May 2007 - 01:34 AM

Hello everyone,

My new project is on creating an sms application in c#. i Just need to know how much i need to get started and go ahead to create it. Collaborations with anyone else are highly welcome.
Is This A Good Question/Topic? 0
  • +

Replies To: SMS APPLICATION IN C#

#2 tonyloop  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 08-May 07

Re: SMS APPLICATION IN C#

Posted 18 May 2007 - 01:55 AM

generally what i need is just some kind of code to start with and tutorials. Thanks
Was This Post Helpful? 0
  • +
  • -

#3 JellyBean  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 60
  • Joined: 25-April 07

Re: SMS APPLICATION IN C#

Posted 19 May 2007 - 05:29 AM

View Posttonyloop, on 18 May, 2007 - 09:55 AM, said:

generally what i need is just some kind of code to start with and tutorials. Thanks

If you need tutorials then Google has the answers :-)

Actually, there is a web service http://www.webservic...world.asmx?WSDL which looks quite promising, although they don't include the UK yet :(

Using a web service is very easy from .NET so this might be the best direction for you to go in...

1. Start the Visual Studio 2005 Command Prompt.
2. Type this command: wsdl /out:c:\SmsServiceProxy.cs http://www.webservic...world.asmx?WSDL

This will create a C Sharp class file on the c: drive allowing you to use this web service and hopefully send SMS. If you would rather generate a VB class, then add the switch /language:VB.

Note: I cannot vouch for the security and/or reliability of this service!
Was This Post Helpful? 0
  • +
  • -

#4 sandy_144in  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 26-June 07

Re: SMS APPLICATION IN C#

Posted 26 June 2007 - 11:27 PM

View Posttonyloop, on 18 May, 2007 - 01:55 AM, said:

I think u cn do this by using some API calls.
U can get some code from codeproject website, I have gonethrogh some code there they have got some implementation of API calls provided free by the sms site just like google API calls.
There is totally a use of javascript there, u can use that site.

Was This Post Helpful? 0
  • +
  • -

#5 willamike  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 1
  • Joined: 22-August 07

Re: SMS APPLICATION IN C#

Posted 22 August 2007 - 12:19 PM

I think the best option is to use an SMS Gateway. It saves a lot time and pain. The following article gives information about how you can send SMS messages from C#:

C# SMS Gateway
Was This Post Helpful? 1

#6 sqlchild  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 28-March 11

Re: SMS APPLICATION IN C#

Posted 28 March 2011 - 10:30 PM

View PostJellyBean, on 19 May 2007 - 05:29 AM, said:

View Posttonyloop, on 18 May, 2007 - 09:55 AM, said:

generally what i need is just some kind of code to start with and tutorials. Thanks

If you need tutorials then Google has the answers :-)

Actually, there is a web service http://www.webservic...world.asmx?WSDL which looks quite promising, although they don't include the UK yet :(

Using a web service is very easy from .NET so this might be the best direction for you to go in...

1. Start the Visual Studio 2005 Command Prompt.
2. Type this command: wsdl /out:c:\SmsServiceProxy.cs http://www.webservic...world.asmx?WSDL

This will create a C Sharp class file on the c: drive allowing you to use this web service and hopefully send SMS. If you would rather generate a VB class, then add the switch /language:VB.

Note: I cannot vouch for the security and/or reliability of this service!



sir, how do i use this webservice? i have done whatever you have mentioned, after that what to do ?
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
     
      try
      {
        SmsTest.net.webservicex.www.SendSMS smsIndia= 
          new SmsTest.net.webservicex.www.SendSMS();
        SmsTest.com.webservicex.www.SendSMSWorld smsWorld =  
          new SmsTest.com.webservicex.www.SendSMSWorld();
        if(rdoType.SelectedValue == "1")
          smsIndia.SendSMSToIndia(txtMobileNo.Text.Trim(), 
            txtEmailId.Text.Trim(), txtMessage.Text);
        else 
          smsWorld.sendSMS(txtEmailId.Text.Trim(), 
           txtCountryCode.Text.Trim(), txtMobileNo.Text.Trim(), 
           txtMessage.Text);
        lblMessage.Visible = true;
        lblMessage.Text="Message Send Succesfully";
      }
      catch(Exception ex)
      {
        lblMessage.Visible = true;
        lblMessage.Text="Error in Sending message"+ex.ToString();
      }
    }

    private void rdoType_SelectedIndexChanged(
     object sender, System.EventArgs e)
    {
      if(rdoType.SelectedValue =="1")
        txtCountryCode.Enabled = false;
      else
        txtCountryCode.Enabled = false;

    }


It gives the error: The namespace SmsTest not found?

MOD EDIT: When posting code...USE CODE TAGS!!!

This post has been edited by JackOfAllTrades: 29 March 2011 - 04:44 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1