ArcIMS SendArcXML


PurposeThis sample demonstrates how to use the ArcIMS application programming interface (API), which is included with the Web Application Developer Framework (ADF), to send raw ArcXML to and from an ArcIMS server via Transmission Control Protocol (TCP) (to the application server directly) or via Hypertext Transfer Protocol (HTTP) (via the ArcIMS servlet connector). If a user name and password are required via HTTP, enter the appropriate values in the ArcXML.aspx code file (for example, ArcXML.aspx.cs).

How to use

If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

At design time
  1. Verify that the Web ADF for the .NET Framework is installed and functioning properly. For information on installing and configuring the Web ADF, consult the installation guide.
  2. In Windows Explorer, navigate to <ArcGIS install location>\DeveloperKit10.0\Samples\ServerNET\ArcIMS_SendArcXML. This folder contains the sample's CSharp and VBNet folders.
  3. Open the folder of the language you're going to use—CSharp or VBNet—and copy the ArcIMS_SendArcXML_<language> folder to c:\inetpub\wwwroot. The <language> variable can be either CSharp or VBNet.
  4. Open the IIS Manager from Control Panel > Administrative Tools > Internet Information Services (IIS) Manager or Internet Information Services.
  5. In the console tree view on the left, navigate to Local Computer > Web Sites > Default Web Site, expand Default Web Site, right-click the ArcIMS_SendArcXML_<language> folder, and click Properties. The Properties dialog box opens.
  6. Click the Directory tab, click the Create button in the Application Settings section, then click OK to close the Properties dialog box.
  7. Start Microsoft Visual Studio 2008 or 2010 and open the ArcIMS_SendArcXML_<language><vs_version> solution (for example, ArcIMS_SendArcXML_CSharp2008.sln) located in c:\inetpub\wwwroot\ArcIMS_SendArcXML_<language>.
  8. In Solution Explorer, right-click ArcXML.aspx and select Set As Start Page.
  9. To access authenticated ArcIMS services, open the code file for the ArcXML.aspx page (for example, ArcXML.aspx.cs), and set the User and Password properties on the HTTPConnection instance.
  10. Save the project.
  11. Click the Debug drop-down menu and click Start Debugging.

At run time
  1. Browse to the viewer uniform resource locator (URL) (for example, http://localhost/ArcIMS_SendArcXML_CSharp).
  2. Type a server name, select a type of connection, and type the name of the ArcIMS service.
  3. Add ArcXML request content in the ArcXML Request text box, or select an ArcXML template from the Template drop-down list.
  4. Click the Send Request button to submit the ArcXML request to ArcIMS. The response is displayed in the ArcXML Response text box.
  5. To send a request to a custom service, select the appropriate custom service type near the top of the page. For example, to send a GET_FEATURES request to an image service query server, check the Query box before submitting the request.

ArcIMS_SendArcXML_CSharp\ArcXML.aspx Contains the Web user interface to interact with server-side code.
ArcIMS_SendArcXML_CSharp\ArcXML.aspx.cs Code behind the .aspx file. References Web ADF libraries and functionality.
ArcIMS_SendArcXML_CSharp\Web.config Application configuration files contain settings specific to this sample.
Download the C# files
ArcIMS_SendArcXML_VBNet\ArcXML.aspx Contains the Web user interface to interact with server-side code.
ArcIMS_SendArcXML_VBNet\ArcXML.aspx.vb Code behind the .aspx file. References Web ADF libraries and functionality.
ArcIMS_SendArcXML_VBNet\Web.config Application configuration files contain settings specific to this sample.
Download the VB.NET files

Download the files for all languages