Call a web service in visual studio .NET

Call a web service using Visual Studio 2008.

In this example, we will be using Visual Studio 2008. First, create a new Windows Form Application for this example.

Figure 1. Dot net project

On the resulting form, we created a richTextBox (which we named 'richTextBoxResult') and a button (named buttonResult).

Figure 2. Dot net example form