Before you can use web reference facilities in your C# program code, you must first add the web reference to your Visual Studio project.
Use the following steps to add a web reference to any of the Spatial Module web services.
-
Start Visual Studio.
-
On the File menu, select .
The New Project dialog box opens.
-
In the New Project dialog box, enter the desired settings, then click OK.
-
In the Solution Explorer pane, right-click on References. On the pop-up menu, select Add Web Reference.
The Add Web Reference dialog box opens.
-
In the Add Web Reference dialog box, enter the URL to the web service's WSDL document.
After you have entered the URL, click the Go button. Documentation for the web service then appears under the URL field.
-
In the Add Web Reference dialog box, note the web reference name provided in the Web Reference Name field, then click the Add Reference button.
The web reference is added to the project.
After you have completed these steps, you can see the new web reference in the Solution Explorer pane.