getting error while sending SMS using Web services

Posted by Rickeybglr under ASP.NET on 8/18/2011 | Points: 10 | Views : 2093 | Status : [Member] | Replies : 2
hi,

getting error The type or namespace name SmsTest could not be found(you are missing directives).
here is my code...

protected void Send_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.Checked ==true )
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();
}
}


protected void rdoType_CheckedChanged(object sender, EventArgs e)
{
if (rdoType.Checked ==true)
txtCountryCode.Enabled = false;
else
txtCountryCode.Enabled = false;
}
}




Responses

Posted by: Vuyiswamb on: 8/22/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
How did you create a proxy or rather what did you call your proxy(name) when you add a reference ?

Thank you for posting at Dotnetfunda
[Administrator]

Rickeybglr, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rickeybglr on: 8/22/2011 [Member] Starter | Points: 25

Up
0
Down
i got it ..how to do tht. the sol. is tht i have to add web refer. of web services then identify the method and call it !!!!

Rickeybglr, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response