Small update, WMS is properly working now I can request it and it returns the correct layers. the wrapper is not working at all but it can probably wait till last. I have tried to get openlayers to import the WMS data but it won't
<br><br>This is is the code i've used:<br><br>var mapservwms = new OpenLayers.Layer.WMS("De Bortoli Mapserver", ['<a href="http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/dbw.map&service=wms&version=1.1.1&request=getmap&layers=dbap" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/dbwwms.map&service=wms&version=1.1&request=getmap&layers=dbwap,bcadbd,hcadbd'])</a><br><br>however it does not work, i just get a blank screen
<br><br><div><span class="gmail_quote">On 7/3/07, <b class="gmail_sendername">Bradley Mclain</b> <<a href="mailto:bradleym06@gmail.com">bradleym06@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ok after some mucking around i managed to get the request to return a file save message, however it returns this even when i use getmap not just getcapabilities. Any idea why it is doing this?<br><br>The message is something like you have chosen to open mapserv which is an: application/vnd.ogc.se_xml
<br><br>my request was <a href="http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/dbw.map&service=wms&version=1.1.1&request=getmap&layers=dbap" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/dbw.map&service=wms&version=1.1.1&request=getmap&layers=dbap
</a><br><br>Also i am having trouble getting the wrapper to work but this is not my priority yet.<div><span class="e" id="q_113896ecdfff6796_1"><br><br><div><span class="gmail_quote">On 7/2/07, <b class="gmail_sendername">
Ludwig M Brinckmann</b> <<a href="mailto:ludwigbrinckmann@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ludwigbrinckmann@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><span>On 02/07/07, <b class="gmail_sendername">
Bradley Mclain</b> <<a href="mailto:bradleym06@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bradleym06@gmail.com</a>> wrote:</span><div><span><span class="gmail_quote">
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Also just thought that I'd mention that my Mapserver is not properly set up as a WMS and it will be quite difficult to do so so I'd rather use the cgi mode of Mapserver. However when looking at the Mapserver examples I failed to see anything at all which resembled this. It calls "
<a href="http://labs.metacarta.com/wms/vmap0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://labs.metacarta.com/wms/vmap0</a>" but shouldn't there be a "cgi-bin/mapserv?map=" somewhere.
</blockquote></span><div><br>The form the URL looks at the beginning is irrelevant for a servers compliance with the WMS protocol.<br><br>There are many -- reasonably well documented -- ways how the 'cgi-bin/mapserv?/map=' can be hidden. See
<br><a href="http://mapserver.gis.umn.edu/docs/howto/cgi-wrapper-script" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mapserver.gis.umn.edu/docs/howto/cgi-wrapper-script</a>.<br><br>But the first thing to test is if your server works at all -- outside the OpenLayers client. Run something like
<br><br><a href="http://www.yunnanexplorer.com/cgi-bin/wms?request=getmap&service=wms&version=1.1&layers=earthquakes" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.yunnanexplorer.com/cgi-bin/wms?request=getmap&service=wms&version=1.1&layers=earthquakes
</a><br><br>in your browser (substituting your layer names and your URL). If your server works, you should get a map image, if not an XML error message.<br><br>Once this is working, you can add your server to your OpenLayers client as a WMS server (the HttpRequest bit will not work).
<br><br>HTH<br><br>Ludwig<br><br><br><br> </div></div><br>
</blockquote></div><br>
</span></div></blockquote></div><br>