I am simply looking for an example of an ASP.NET Web Application (in C#) that consumes a published HTTP-GET web service.
Seems like it should be an easy thing to find online, but I have yet to come across one.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Right-click your project in Visual Studio 2010 and select the option “
Add Web-Reference...“.In the “Add Web Reference” dialog, type the URL of the web-service, for example http://www.startvbdotnet.com/web/sample2.asmx, and a “Web reference name”, for example “
com.startvbdotnet.www“.A lot of code will be generated on your project. The “Web reference name” will be the name of the generated namespace.
The classes of that namespace will work like “normal” classes, but behind the scenes the method calls will be web-service calls.