beautypg.com

Pitney Bowes MapXtreme User Manual

Page 394

background image

Chapter 22: Web Feature Service

Configuring a WFS Server

MapXtreme v7.1

401

Developer Guide

type="MapInfo.Wfs.WfsHttpHandler, MapInfo.Wfs.Server, Version=7.1.0.200,
Culture=neutral, PublicKeyToken=4ac3224575145b20"/>


MapInfo.CoreEngine, Version=7.1.0.200, Culture=neutral,
PublicKeyToken=93e298a0f6b95eb1" name="WebSessionActivator" />

5. For IIS 7 Integrated pipeline mode, copy the following section into the web.config. You do not

need to comment out the section to run in integrated pipeline mode. However, if
you need to run in IIS 7 classic mode or under IIS 6, you must comment out this
section.
Follow the instructions in

step 4

to update the assembly versions for MapInfo.CoreEngine and

MapInfo.Wfs.Server.


MapInfo.CoreEngine, Version=7.1.0.200, Culture=neutral,
PublicKeyToken=93e298a0f6b95eb1" name="WebSessionActivator"/>


type="MapInfo.Wfs.WfsHttpHandler, MapInfo.Wfs.Server, Version=7.1.0.200,
Culture=neutral, PublicKeyToken=4ac3224575145b20"/>

6. Save this file and copy it to the location you created in

step 1

.

Step 2: Create a Valid WFS Configuration File for Hosted Features

The WFSSample.xml is a WFS configuration file provided with MapXtreme. This file defines
information about your WFS server, including its name, title, abstract, the URL to the WFS Server
and the data you want to host.

1. Open WFSSample.xml in a text editor and modify the OnlineResource line to include the URL of

your WFS Server. Change localhost to what is appropriate for your WFS server.

Sample WFS Server
Sample WFS Server

http://localhost/wfs/GetFeature.ashx

wfs:OnlineResource>


You can modify other elements as you see fit, including the server name, title, abstract, fees,
access constraints and more.