Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im using C# language ASP.net technology
im using the below webservice to send free sms.
if possible explain completely about this webservice


this is my webreference
http://www.spiritssoft.com/webservice/sendway2sms.asmx
C#
protected void Button1_Click(object sender, EventArgs e)
  {

      //WebService URL
      //http://www.spiritssoft.com/webservice/sendway2sms.asmx
      com.spiritssoft.www.SendWay2Sms sendSms = new com.spiritssoft.www.SendWay2Sms();
      sendSms.Timeout.Equals(120);
      lbl.Text=sendSms.sendSmsSpiritsSoft(txt1.Text,txt2.Text,txt3.Text,txt4.Text);

  }


[Modified: fixed your formatting problems]
Posted
Updated 14-Oct-10 9:45am
v2

I would suggest that the best place to ask this sort of question would be the web site of the authors of the webservice.

Still, if it were me I would try by replacing the .Text references with the actual values.
C#
Lable1.Text=sendSms.sendSmsSpiritsSoft("yourUsername", "yourPassword", "7845111222", "Hello World");


Obviously use the real usename/password and a real mobile number.

If that works then there is something wrong with the values in your TextBoxes, maybe spaces in the wrong place etc.

However, if that doesn't work then you have done something wrong somewhere else. Which will mean a visit to the authors web site. There must be tutorials there.
 
Share this answer
 
v2
i am also getting same problem please help some.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900