[mapserver-users] RE: Wrapper using Asp.net
YC Nyon
ycnyon at pd.jaring.my
Sun Aug 15 09:29:19 PDT 2010
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
%>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100816/34e3d3f9/attachment.htm>
More information about the MapServer-users
mailing list