Accessing Place Finder Sample with an ASP.NET Web application

The purpose of this sample is to demonstrate how to call Place Finder Sample using Visual Studio .NET through an ASP .NET Web application.

No authentication steps are required for Place Finder Sample. You can freely access Place Finder Sample once you have accepted its license agreement. This sample assumes you have Visual Studio .NET running on your machine.

How to use

  1. Open Visual Studio.

  2. Click File, click New, and select Project.

  3. Click Visual C# Projects under Project types, then click ASP.NET Web Application under Templates.

  4. Add two text boxes (Textbox1 for the address and Textbox2 for the result) and one button (Button1).

  5. Substitute your class WebForm1 with the WebForm code.

  6. Add a reference for the Place Finder Sample Web Service.

  7. This step creates a proxy class on the client computer. After the proxy class exists, you can create objects based on the class. Each method call that is made with the object then goes out to the URL of the ArcWeb Service, usually as a SOAP request.

    1. Click the Project menu and click Add Web Reference.

    2. In the Add Web Reference dialog box, type the URL for the ArcWeb service in the Address text box and press Enter.

    3. For example:

      http://arcweb.esri.com/services/v2/PlaceFinderSample.wsdl

    4. Click Add Reference.

  8. Include a directive, using, for the namespace of PlaceFinderSample in your ASP file (you can see the names of the namespace in Class View (View -> Class View)).

  9. Click Build and click Build Solution to build the console application.

  10. Click Debug and click Start to test the application.

  11. Click File and click Save to save your project.     


See also

Place Finder Sample code samples
Place Finder Sample live sample