Pitney Bowes MapXtreme User Manual

Page 350

Advertising
background image

Chapter 19: Web Map Service

Setting up a MapXtreme WMS Server

MapXtreme v7.1

357

Developer Guide

<appSettings>

<add key="configFile" value="C:\wms\WMSSample.xml" />

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

for the MapInfo.Wms.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>

<add verb="GET,POST" path="*.ashx"

type="MapInfo.Wms.WmsHttpHandler, MapInfo.Wms.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>

4. 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

step 3

to update the assembly versions for MapInfo.CoreEngine and

MapInfo.Wms.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="WMSHandler" verb="GET,POST" path="*.ashx"

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

</handlers>

</system.webServer>

5. Save the web.config file and copy it to the location you created in

step 1

.

Step 2: Create a Valid WMS Configuration File for Hosted Data

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

Advertising