hi,

I manage to use the code below (found in the manual pg.346)  as a wrapper to 
the WMS service running on my development server which is win 2003 std server. 
However the deployment server is Win2008 server and i understand it doesn't 
come with asp support. Tried saving the existing asp file to aspx. However it 
got a "End of statement expected" at line 5.

Has anyone got this working and don't mind sharing this workaround code.

Thanks
YC 


<%

Server.ScriptTimeout = 360

Select Case Request.ServerVariables("REQUEST_METHOD")

Case "GET" strRequest = Request.QueryString

Case "POST" strRequest = Request.Form

End Select

strURL = 
"http://myserver/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\workshop\itasca.map&";
 & 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

%>
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to