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
- 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.
- In Windows Explorer, navigate to <ArcGIS install location>\DeveloperKit10.0\Samples\ServerNET\ArcIMS_SendArcXML. This folder contains the sample's CSharp and VBNet folders.
- Open the folder of the language you are going to use (that is, CSharp or VBNet) and copy the ArcIMS_SendArcXML_<language> folder to c:\inetpub\wwwroot. The <language> variable can be CSharp or VBNet.
- Open the IIS Manager from Control Panel, Administrative Tools, Internet Information Services (IIS) Manager, or Internet Information Services.
- 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 appears.
- Click the Directory tab, click the Create button in the Application Settings section, then click OK to close the Properties dialog box.
- Start Visual Studio 2010 and open the ArcIMS_SendArcXML_<language><vs_version> solution (for example, ArcIMS_SendArcXML_CSharp2010.sln) located in c:\inetpub\wwwroot\ArcIMS_SendArcXML_<language>.
- In the Solution Explorer, right-click ArcXML.aspx and select Set As Start Page.
- 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.
- Save the project.
- Click the Debug drop-down menu and click Start Debugging.
At run time
- Browse to the viewer uniform resource locator (URL), for example, http://localhost/ArcIMS_SendArcXML_CSharp.
- Type a server name, select a type of connection, and type the name of the ArcIMS service.
- Add ArcXML request content in the ArcXML Request text box or select an ArcXML template from the Template drop-down list.
- Click the Send Request button to submit the ArcXML request to ArcIMS. The response shows in the ArcXML Response text box.
- 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 (UI) 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. |
ArcIMS_SendArcXML_VBNet\ArcXML.aspx | Contains the Web user interface (UI) 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 files for all languages