Configuring a wfs server, Step 1: create a web.config file – Pitney Bowes MapXtreme User Manual

Page 393

Advertising
background image

Chapter 22: Web Feature Service

Configuring a WFS Server

MapXtreme v7.1

400

Developer Guide

Configuring a WFS Server

If you have spatial data you wish to make available to others, you first must configure a WFS server
to describe what data and capabilities you are offering. There are two configuration files that you
need to provide to accomplish this. This discussion assumes you have a working knowledge of
schemas and web services.

You do not need to configure a WFS server if you are only interested in accessing someone else’s
WFS server to retrieve features. See

Using the MapXtreme WFS Client Programmatically

.

The main configuration steps that are addressed in this section are:

Step1: Create or modify a Web.config file to include the MapXtreme-specific WFS information and
the correct handlers for IIS classic or integrated pipeline mode.

Step 2: Create a valid WFS Server configuration file that contains information about the data you are
hosting. This file must validate against the WFS schema file (MXP_WFSConfiguration_1_0.xsd) to
avoid errors when you run the WFS Server.

Step 3: Configure and test the WFS Server setup. Instructions for IIS7 and IIS6 configuration are
provided.

On the MapXtreme product media, we provide sample Web.config and WFS configuration files that
you can use as a guide for creating your own files. The Web.config file defines how the ASP process
in handled. The WFSSample.xml defines the data sources and feature definitions you want your
WFS server to provide.

The schemas for the MapXtreme workspace and WFS server are also located on the product media.

Step 1: Create a Web.config File

The Web.config is a standard configuration file for a web application. To use it for a MapXtreme WFS
server, you must edit it to provide MapXtreme-specific WFS information and to define how the
ASP.NET process will be handled.

1. Create a folder to contain the Web.config and the WFSSample.xml. In this example, the location

is called c:\wfs.

2. Copy the Web.config and WFSSample.xml from the MapXtreme product media to this folder.

3. Open Web.config In a text editor and modify the <appSettings"> line to point to the WFS

configuration file.
<configuration>
<appSettings>
<add key="configFile" value="C:\wfs\WFSSample.xml" />

4. For IIS 7 classic mode or IIS 6, update the version number and PublicKeyToken (if necessary)

for the MapInfo.Wfs.Server and the MapInfo.CoreEngine assemblies installed on your system
(bold type below).
Assemblies are located in C:\Windows\Microsoft.NET\assembly\GAC_32 or GAC_64.

<system.web>

<httpHandlers>

Advertising