Pitney Bowes MapXtreme User Manual

Page 357

Advertising
background image

Chapter 19: Web Map Service

Setting up a MapXtreme WMS Server

MapXtreme v7.1

364

Developer Guide

5. Test your setup by sending a

GetCapabilities

request from a web browser. In the address box

type:
http://localhost/wms/GetMap.ashx?REQUEST=GetCapabilities&SERVICE=WMS&V
ERSION=1.3.0
substituting your web server for localhost. If you have set an Alias to your web server, be sure
to include that in your URL. For example:
http://localhost/My_WMS/GetMap.ashx?REQUEST=GetCapabilities&SERVICE=W
MS&VERSION=1.3.0
A successful test will return a web page similar to the illustration below. If the capabilities are not
returned, review your configuration files to ensure everything has been entered correctly. Since
you are creating the configuration files by hand, It is very easy to include typos or have missing
tags.

6. If you make any changes to the WMSSample.xml after you access the WMS Server, you will

need to reset IIS in order for your changes to take affect. To reset IIS, from a command prompt
type:
c:\>IISreset

7. To request a test map image, send a

GetMap

request, following the example below:

http://My_Wms/GetMap.ashx?service=WMS&VERSION=1.3.0&SRS=epsg:4267&REQU
EST=GetMap&LAYERS=States&STYLES=&BBOX=-
180,0,0,90&WIDTH=800&HEIGHT=600&FORMAT=image/gif
The WMS server returns a map image of the States layers.

Advertising