Nupsout

09/12/2009

How to Create Web References

Filed under: Others — admin @ 3:46 PM

Your Ad Here

A web reference is an added edition to a .NET website project. It allows the programmer to make calls to web services either on the local network or over the Internet. A web service is an XML application that interfaces with an external program and the internal database or web server. It provides functions and properties for a process. For instance, a web service can be used to allow external applications to insert and retrieve customer data.

  1. Open Visual Studio and open the project that needs the web reference connection. On the right side of the screen is the “Solution Explorer” window. Right-click the “Project” folder and select “Add Web Reference.”
  2. Click the link on the left side of the window to search for services on the local machine or the network. A list of web services will list after a few seconds.

  3. Click a service listed to select it, or you can type in your own address into the text box. A typical web service file has the .asmx file extension. Click the “Next” button.
  4. Verify the web service address and type a name into the text box. The default is given by the the .NET application, but you can give it a friendly name. This name is used when programming your application to connect to the web service.

  5. Click the “OK” button. The web reference will propagate into the .NET project. You will see a new folder in the Solution Explorer named “Web References.” Within this folder, you’ll see your newly added reference.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress