hi,
can anyone help me for how to ues web service and how to call it in web page with example in asp.net with c#
thank
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
naura paxRank #2,843 · 502 reputationPosted Oct 5, 2009, 12:17 AM EDT
If you already have web service ready and url to access it, then all you 'll have to do is add a web reference in your web project by right clicking on the web project in solution explorer.
Visual studio will ask for url of the web service.
You can invoke the method by creating an object of the referenced web service.
For reference check these out:
http://msdn.microsoft.com/en-us/library/d9w023sx.aspx and http://msdn.microsoft.com/en-us/library/6h0yh8f9.aspx
urmila kandari22 reputationPosted Oct 6, 2009, 2:59 AM EDT
pls tell me how to create web service and how to use it and call webservice in webpage in asp.net
thanks
naura paxRank #2,843 · 502 reputationPosted Oct 6, 2009, 11:53 PM EDT
its simple you will have to create a new project and select ASP.net Web Service for project type.
and in this project you will have to add your classes and add methods with attribute for webmethods -:
[System.Web.Services.WebMethod()] public double FahrenheitToCelsius(double Fahrenheit) { return ((Fahrenheit - 32) * 5) / 9; }you can then consume this service in another web application.
please go through this url its important for you to grasp the content.
http://msdn.microsoft.com/en-us/library/8wbhsy70.aspx
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Oct 7, 2009, 1:08 AM EDT
1.http://www.15seconds.com/Issue/010430.htm
2.http://articles.sitepoint.com/article/amazon-web-services-asp-net