Pitney Bowes MapXtreme User Manual
Page 394

Chapter 22: Web Feature Service
Configuring a WFS Server
MapXtreme v7.1
401
Developer Guide
<add verb="GET,POST" path="*.ashx"
type="MapInfo.Wfs.WfsHttpHandler, MapInfo.Wfs.Server, Version=7.1.0.200,
Culture=neutral, PublicKeyToken=4ac3224575145b20"/>
</httpHandlers>
<httpModules>
<add type="MapInfo.Engine.WebSessionActivator,
MapInfo.CoreEngine, Version=7.1.0.200, Culture=neutral,
PublicKeyToken=93e298a0f6b95eb1" name="WebSessionActivator" />
</httpModules>
5. For IIS 7 Integrated pipeline mode, copy the following section into the web.config. You do not
need to comment out the <system.web> 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
<system.webServer> section.
Follow the instructions in
to update the assembly versions for MapInfo.CoreEngine and
MapInfo.Wfs.Server.
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<directoryBrowse enabled="true" />
<modules>
<add type="MapInfo.Engine.WebSessionActivator,
MapInfo.CoreEngine, Version=7.1.0.200, Culture=neutral,
PublicKeyToken=93e298a0f6b95eb1" name="WebSessionActivator"/>
</modules>
<handlers>
<add name="WFSHandler" verb="GET,POST" path="*.ashx"
type="MapInfo.Wfs.WfsHttpHandler, MapInfo.Wfs.Server, Version=7.1.0.200,
Culture=neutral, PublicKeyToken=4ac3224575145b20"/>
</handlers>
</system.webServer>
6. Save this file and copy it to the location you created in
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.
<mxp-wfs:Service>
<mxp-wfs:Name>Sample WFS Server</mxp-wfs:Name>
<mxp-wfs:Title>Sample WFS Server</mxp-wfs:Title>
<!-- The following is the URL of the WFS server -->
<mxp-wfs:OnlineResource>http://localhost/wfs/GetFeature.ashx</mxp-
wfs:OnlineResource>
</mxp-wfs:Service>
You can modify other elements as you see fit, including the server name, title, abstract, fees,
access constraints and more.