WMS Server - URL question on IIS

Ed McNierney ed at TOPOZONE.COM
Tue Dec 7 20:54:59 EST 2004


Tanya -

I'm starting to think that you really should know a bit more about ASP
and IIS if you're going to try this route.  It's not complicated, but
it's really hard to implement and maintain a solution when you really
know nothing at all about how it works.

That error message means what it says - your ASP code is unable to
create the MSXML2.ServerXMLHTTP object, presumably because it's not
installed on your machine (the example doesn't say anything about
finding it and installing it).  You can start here, at the Microsoft KB
article "Frequently Asked Questions about ServerXMLHTTP":

http://support.microsoft.com/kb/290761/EN-US/

Which includes information on downloading, installing, and configuring
your server to use this component.

        - Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
Phone: +1 978 251-4242   Fax: +1 978 251-1396 

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of TCHaddad
Sent: Tuesday, December 07, 2004 7:46 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] WMS Server - URL question on IIS

Tried Richard's suggestion and then edited the URL to this format:

http://www.ourserver.com/path/default.asp?REQUEST=GetCapabilities
http://www.ourserver.com/path/default.asp?REQUEST=GetMap&LAYERS=States&B
BOX=-1607383.613942,-259884.526499,2359824.013095,2787988.445255&FORMAT=
image/png&STYLES=&WIDTH=400&HEIGHT=300&VERSION=1.1.1

but we got the following server error:

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/path/default.asp, line 6
Invalid ProgID.

So are we messing up the idea of the URLs, or is this something we need
to/can correct on the server ?

this is the long format of the URLs which do work:

http://www.ourserver.com/path/mapserv.exe?map=D:\path\path\cgi-bin\atlas
_wms.map&REQUEST=GetCapabilities
http://www.ourserver.com/path/mapserv.exe?map=D:\path\path\cgi-bin\atlas
_wms.map&REQUEST=GetMap&LAYERS=States&BBOX=-1607383.613942,-259884.52649
9,2359824.013095,2787988.445255&FORMAT=image/png&STYLES=&WIDTH=400&HEIGH
T=300&VERSION=1.1.1

thanks for any ideas ...

Tanya

---------- Original Message ----------------------------------
From: Richard Greenwood <richard.greenwood at gmail.com>
Reply-To: Richard Greenwood <richard.greenwood at gmail.com>
Date:  Tue, 7 Dec 2004 15:59:48 -0700

>On Tue, 7 Dec 2004 16:51:46 -0600, TC Haddad <tchaddad at cshore.com>
wrote:
>> this feels like a pretty ignorant question, but i'm not that familiar

>> with IIS, and i'm hoping someone can help. we have a Win2k IIS 5 box 
>> which we have GetMap and GetCapabilities requests working on. now 
>> we're interested in masking the URL a bit so it's a bit tidier. in 
>> the WMS-How-To there is a ASP script provided (see below) - but where

>> does the script go in IIS if we want to implement this option? Any 
>> help would be great, tanya
>>
>> MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP

>> OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE 
>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
>> SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL 
>> INPUT=SHAPEFILE
>>
>> ASP script example from WMSServerHow-To:
>>
>> http://mapserver.gis.umn.edu/doc42/wms-server-howto.html#onlineresour
>> ceurl
>>
>>   <%
>>     Server.ScriptTimeout = 360
>>     strRequest = Request.ServerVariables("QUERY_STRING")
>>     strURL = "http://myserver/cgi-bin/mapserv.exe?
>> map=C:\Inetpub\wwwroot\WMS\mymap.map&" & strRequest
>>     Dim objHTTP
>>     Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
>>     objHTTP.open "GET", strURL, false
>>     objHTTP.send ""
>>     Response.ContentType = objHTTP.getResponseHeader("content-type")
>>     Response.BinaryWrite objHTTP.responseBody
>>     Set objHTTP = Nothing
>>   %>
>>
>
>Save it as a 'default.asp' in an appropriate directory.
>
>--
>Richard Greenwood
>richard.greenwood at gmail.com
>www.greenwoodmap.com
>



________________________________________________________________



More information about the mapserver-users mailing list