<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">Dear list.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">I am using openlayers2.7 and geoserver.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">After loading WMS layer, I request WFS with spatial operation.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; WORD-BREAK: keep-all; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">&nbsp;</span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; WORD-BREAK: keep-all; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">function </span><span lang="EN-US" style="COLOR: black; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">wfsQuery()</span><span lang="EN-US" style="FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt"></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">{</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">&nbsp;</span>url=&quot;<a href="http://localhost:8888/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;typename=topp:states&amp;request=GetFeature&amp;BBOX=-73.99312376470733,40.76203427979042,-73.9239210030026,40.80129519821393">http://localhost:8888/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;typename=topp:states&amp;request=GetFeature&amp;BBOX=-73.99312376470733,40.76203427979042,-73.9239210030026,40.80129519821393</a>&quot;;</span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">&nbsp;</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">OpenLayers.loadURL(url, &#39;&#39;, this, wfsResponse);</span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">}</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">&nbsp;</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">function wfsResponse(transport) {</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 40pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">gmlParser = new OpenLayers.Format.GML();</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>features = gmlParser.read(transport.responseText);</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;</span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>var styleMapSimple = new OpenLayers.StyleMap({</font></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>strokeColor: &quot;black&quot;,</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>strokeWidth:1,</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>fillColor: &quot;orange&quot;,</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>fillOpacity: 0.7,</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>});</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><span style="mso-spacerun: yes"><font face="¸¼Àº °íµñ">&nbsp;</font></span></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;</span><span style="mso-spacerun: yes">&nbsp;</span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>var layerStyled = new OpenLayers.Layer.Vector(&quot;result&quot;, {styleMap: styleMapSimple});</font></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;</span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>layerStyled.addFeatures(features);</font></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;</span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>map.addLayer(layerStyled);</font></span></p>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>}</font></span></div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"></font></span>&nbsp;</div>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">The code above works well. But I changed the way to request such like</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; WORD-BREAK: keep-all; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">function </span><span lang="EN-US" style="COLOR: black; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">wfsQuery()</span><span lang="EN-US" style="FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt"></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">{</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt"><span style="mso-spacerun: yes">&nbsp;</span></span><span lang="EN-US"><font face="¸¼Àº °íµñ">url=&quot;<a href="http://localhost:8888/geoserver/wfs?&amp;VERSION=1.0.0&amp;SERVICE=WFS&amp;REQUEST=GetFeature&amp;TYPENAME=topp:states&amp;Filter=">http://localhost:8888/geoserver/wfs?&amp;VERSION=1.0.0&amp;SERVICE=WFS&amp;REQUEST=GetFeature&amp;TYPENAME=topp:states&amp;Filter=</a>&lt;Filter&gt;&lt;BBOX&gt;&lt;PropertyName&gt;the_geom&lt;/PropertyName&gt;&lt;Box%20srsName=&#39;EPSG:4326&#39;&gt;&lt;coordinates&gt;-73.102613,%40.212597,%-72.361859,%41.512517&lt;/coordinates&gt;&lt;/Box&gt;&lt;/BBOX&gt;&lt;/Filter&gt;&quot;;</font></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">&nbsp;</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">OpenLayers.loadURL(url, &#39;&#39;, this, wfsResponse);</span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: &#39;Courier New&#39;; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">}</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">&nbsp;</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">When I request the url above, I got an error message.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">The error message is that</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">&lt;?xml version=&quot;1.0&quot; ?&gt;</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">&lt;ServiceExceptionReport</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>version=&quot;1.2.0&quot;</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>xmlns=&quot;<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>&quot;</font></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;</font></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>xsi:schemaLocation=&quot;<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a> <a href="http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd</a>&quot;&gt;</font></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>&lt;ServiceException locator=&quot;org.vfny.geoserver.util.requests.readers.XmlRequestReader&quot;&gt;</font></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>org.xml.sax.SAXException: Attempted to construct illegal filter - I dont understand the tag: Box.<span style="mso-spacerun: yes">&nbsp; </span>HINT: tags are case-sensitive!</font></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">Attempted to construct illegal filter - I dont understand the tag: Box.<span style="mso-spacerun: yes">&nbsp; </span>HINT: tags are case-sensitive!</font></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">&lt;/ServiceException&gt;&lt;/ServiceExceptionReport&gt;</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">&nbsp;</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">&nbsp;</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">After several testing, I realized that when I request Comparison Operator, it works well. However, if I request Spatial Operations, I face errors.</font></span></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">How to solve this problem?</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">&nbsp;</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">Best regards,</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">Myeonghun Jeong.</font></span></p>