<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial><SPAN class=281433813-02082008>&gt; 
</SPAN>can get the GML&nbsp; data using the wfs url through the 
browser</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=281433813-02082008><FONT face=Arial>do the 
url includes&nbsp;the proxy-part or is it only the url for the wfs request? If 
not included, test the url in your browser through your proxy script 
proxy.cgi.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=281433813-02082008><FONT 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=281433813-02082008><FONT 
face=Arial>Arnd</FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> lorkyo@163.com [mailto:lorkyo@163.com] 
<BR><B>Gesendet:</B> Samstag, 2. August 2008 14:56<BR><B>An:</B> Arnd 
Wippermann; users@openlayers.org<BR><B>Betreff:</B> Re:AW: [OpenLayers-Users] 
WFS can't be shown. Can any one help me?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>&nbsp;Thank you very much. there are truly some problem with the 
proxy.&nbsp; make a&nbsp; directory"proxy" under the $CATALINA_HOME/webapps/. 
And I add one line in to my code " OpenLayers.ProxyHost="/proxy/proxy.cgi?url=". 
<BR>But now I can get several WMS shown, after&nbsp; I changed anyone of them 
into WFS, it could not be shown. But I can get the GML&nbsp; data using the wfs 
url through the browser.&nbsp; Is there some thing wrong in my 
configuration?<BR><BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV><BR>在2008-08-02,"Arnd Wippermann" &lt;arnd.wippermann@web.de&gt; 
写道:<BR>
<BLOCKQUOTE id=isReplyContent 
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
  class=968284016-01082008>Hi,</SPAN></FONT></DIV>
  <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
  class=968284016-01082008></SPAN></FONT>&nbsp;</DIV>
  <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
  class=968284016-01082008>have you considered this:</SPAN></FONT></DIV>
  <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><A 
  href="http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost">http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost</A></FONT></DIV>
  <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
  size=2></FONT>&nbsp;</DIV>
  <DIV><SPAN class=968284016-01082008></SPAN><FONT face=Arial><FONT 
  color=#0000ff><FONT size=2>Arnd<SPAN class=968284016-01082008> 
  Wippermann</SPAN></FONT></FONT></FONT></DIV>
  <DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
  class=968284016-01082008></SPAN></FONT></FONT></FONT><BR>&nbsp;</DIV>
  <DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>Von:</B> <A 
  href="mailto:users-bounces@openlayers.org">users-bounces@openlayers.org</A> 
  [mailto:<A 
  href="mailto:users-bounces@openlayers.org">users-bounces@openlayers.org</A>] 
  <B>Im Auftrag von </B>lorkyo<BR><B>Gesendet:</B> Freitag, 1. August 2008 
  17:00<BR><B>An:</B> <A 
  href="mailto:users@openlayers.org">users@openlayers.org</A><BR><B>Betreff:</B> 
  [OpenLayers-Users] WFS can't be shown. Can any one help 
  me?<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV>I wrote a page to show wms and&nbsp; wfs, at the same time, but I can't 
  get the WFS data show. the codes are listed below.It can only show the WMS 
  data , I exchange the place of "topp:tasmania_water_bodies" and 
  "topp:tasmania_state_boundaries", then it can only show the 
  "topp:tasmania_state_boundaries"(WMS). I have check&nbsp; the checkbox of the 
  layerswitch,and these two layers is the of the same place and have the same 
  SRS, I have used udig to open them:<BR>&nbsp;<BR>var map, layer;<BR>map = new 
  OpenLayers.Map('map', {controls:[], 'projection': 'EPSG:4326', 
  'units':'degrees'}); <BR>&nbsp; OpenLayers.IMAGE_RELOAD_ATTEMPTS = 
  5;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var bounds = new 
  OpenLayers.Bounds(143.60260815000004,-43.851764249999995,148.71135685000002,-39.370182750000005)<BR>&nbsp; 
  // setup untiled 
  layer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; untiled = new 
  OpenLayers.Layer.WMS.Untiled(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  "", 
  "http://192.168.6.140:8080/geoserver/wms",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  layers: 
  'topp:tasmania_water_bodies',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  styles: 
  '',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  height: 
  '382',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  width: 
  '800',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  srs: 
  'EPSG:4326',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  format: 
  'image/png'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  },<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  {maxExtent: bounds, maxResolution: 0.019956049609374915, projection: 
  "EPSG:4326"}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  untiled.ratio=1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  untiled.setVisibility(false, false);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 
  map.addLayer(untiled);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; var roads = new 
  OpenLayers.Layer.WFS(<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "Roads (WFS)", <BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  "http://192.168.6.140:8080/geoserver/wfs?",<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {&nbsp;&nbsp; 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  layers: 
  'topp:tasmania_state_boundaries',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  request: 'GetFeature',<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; maxfeatures: 100, 
  visibility:true<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  },<BR>&nbsp;{maxExtent: bounds, maxResolution: 0.019956049609374915, 
  projection: "EPSG:4326"});<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 
  map.addControl(new 
  OpenLayers.ControlPanZoomBar({div:$('nav')}));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  map.addControl(new 
  OpenLayers.Control.MouseDefaults());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  map.addControl(new 
  OpenLayers.Control.Scale($('scale')));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  map.addControl(new OpenLayers.Control.MousePosition({element: 
  $('position')}));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  map.addControl(new 
  OpenLayers.Control.LayerSwitcher());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  map.addControl(new 
  OpenLayers.Control.OverviewMap());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  map.zoomToExtent(bounds);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  lorkyo<BR></DIV>
  <DIV>&nbsp;</DIV><BR><!-- footer --><BR>
  <HR>
  <FONT 
  style="FONT-SIZE: 12px; LINE-HEIGHT: 15px">22元超值饭面,8.5折纯珍比萨,必胜宅急送</FONT><A 
  style="FONT-SIZE: 12px; COLOR: blue; LINE-HEIGHT: 15px; TEXT-DECORATION: underline" 
  href="http://popme.163.com/link/004584_0708_6957.html">网上点餐优惠多</A> 
</BLOCKQUOTE></BODY></HTML>