<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<blockquote
cite="mid:CAHRZm1sjD-T-WHihGJgB-yBkr1JTanPkUmWaeMhLoPdiaHd+Fw@mail.gmail.com"
type="cite">
<div><br>
</div>
<br>
<div>
<div>var pimaWFS = new OpenLayers.Layer.Vector("Pima Pine", {</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>
strategies: [new OpenLayers.Strategy.BBOX()],</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>
protocol: new OpenLayers.Protocol.WFS({</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>
url: "<a moz-do-not-send="true"
href="http://128.196.142.12:8080/geoserver/wfs">http://128.196.142.12:8080/geoserver/wfs</a>",</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>
featureType: "PimaPine",</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>
featureNS: "<a moz-do-not-send="true"
href="http://opengeo.org">http://opengeo.org</a>",</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>
srsName: "EPSG:4326"</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>
})</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>
});</div>
<div><br>
</div>
<div>But still I have no luck despite specifying the srsName.</div>
</div>
</blockquote>
Nope. You MUST tell it to use v1_1_0 or srs isnt honoured.<br>
ie protocol: new OpenLayers.Protocol.WFS.v1_1_0({
<blockquote
cite="mid:CAHRZm1sjD-T-WHihGJgB-yBkr1JTanPkUmWaeMhLoPdiaHd+Fw@mail.gmail.com"
type="cite">
<div>
<div><br>
</div>
<div>My Geoserver is 2.1 and seems to be the latest build. How
can I check if it supports WFS 1.1.0 or not??</div>
</div>
</blockquote>
It supports 1.1 (you get details of what a server supports from
WFSGetcapabilities call.<br>
<br>
<p><span style="font-family:'Arial';font-size:8pt; color:#000000;">Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.</span></p>
<p><span style="font-family:'Arial';font-size:8pt; color:#000000;"> </span></p></body>
</html>