WMS Server - URL question on IIS

TCHaddad TCHaddad at CSHORE.COM
Tue Dec 7 19:45:31 EST 2004


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&BBOX=-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.526499,2359824.013095,2787988.445255&FORMAT=image/png&STYLES=&WIDTH=400&HEIGHT=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#onlineresourceurl
>>
>>   <%
>>     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