<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi list, <br><br>I'm using ExtJS, OpenLayers and GeoExt and try to create a synchronised map and table view of vector features and follow basically the tutorial from OpenGeo "Leveraging OGC Services with GeoExt.<br>
I have WFS service on a ArcGIS Server, and set all necessary parameter including the proxi.cgi but the attribute don't show up.<br>Here is the code:<br><br>25 Ext.onReady(function() {<div><a style="color: rgb(42, 93, 176); ">26</a><span> OpenLayers.ProxyHost="proxy.cgi?url=";</span></div>
<div><a style="color: rgb(42, 93, 176); ">27</a><span></span></div><div><a style="color: rgb(42, 93, 176); ">28</a><span> var layer = new OpenLayers.Layer.Vector("vector", {</span></div><div><a style="color: rgb(42, 93, 176); ">29</a><span> strategies: [new OpenLayers.Strategy.Fixed()],</span></div>
<div><a style="color: rgb(42, 93, 176); ">30</a><span> protocol: new OpenLayers.Protocol.WFS({</span></div><div><a style="color: rgb(42, 93, 176); ">31</a><span> url: "<a href="http://greenway:8399/arcgis/services/SFAFNR00/soil_wfs/GeoDataServer/WFSServer" target="_blank" style="color: rgb(42, 93, 176); ">http://greenway:8399/arcgis/services/SFAFNR00/soil_wfs/GeoDataServer/WFSServer</a>",</span></div>
<div><a style="color: rgb(42, 93, 176); ">32</a><span> version: "1.1.0",</span></div><div><a style="color: rgb(42, 93, 176); ">33</a><span> featureType: "SoilDatabase_wgs84",</span></div><div><a style="color: rgb(42, 93, 176); ">34</a><span> featureNS: "<a href="http://greenway:8399/arcgis/services/SFAFNR00/soil_wfs/GeoDataServer/WFSServer" target="_blank" style="color: rgb(42, 93, 176); ">http://greenway:8399/arcgis/services/SFAFNR00/soil_wfs/GeoDataServer/WFSServer</a>",</span></div>
<div><a style="color: rgb(42, 93, 176); ">35</a><span> featurePrefix : "soil_wfs",</span></div><div><a style="color: rgb(42, 93, 176); ">36</a><span> geometryName: "Shape",</span></div><div><a style="color: rgb(42, 93, 176); ">37</a><span> srsName: "EPSG:4326"</span></div>
<div><a style="color: rgb(42, 93, 176); ">38</a><span> })</span></div><div><a style="color: rgb(42, 93, 176); ">39</a><span> });</span></div><div><a style="color: rgb(42, 93, 176); ">40</a><span></span></div><div><a style="color: rgb(42, 93, 176); ">41</a><span> var store = new GeoExt.data.FeatureStore({</span></div>
<div><a style="color: rgb(42, 93, 176); ">42</a><span> fields: [</span></div><div><a style="color: rgb(42, 93, 176); ">43</a><span> {name: "SiteCode", type: "string"}</span></div><div><a style="color: rgb(42, 93, 176); ">44</a><span> ],</span></div>
<div><a style="color: rgb(42, 93, 176); ">45</a><span> layer: layer</span></div><div><a style="color: rgb(42, 93, 176); ">46</a><span> });</span></div><div><a style="color: rgb(42, 93, 176); ">47</a><span></span></div><div>
<a style="color: rgb(42, 93, 176); ">48</a><span> var map = new OpenLayers.Map({allOverlays: true});</span></div><div><a style="color: rgb(42, 93, 176); ">49</a><span></span></div><div><a style="color: rgb(42, 93, 176); ">50</a><span> var mapPanel = new GeoExt.MapPanel({</span></div>
<div><a style="color: rgb(42, 93, 176); ">51</a><span> title: "Map",</span></div><div><a style="color: rgb(42, 93, 176); ">52</a><span> region: "west",</span></div><div><a style="color: rgb(42, 93, 176); ">53</a><span> width: 400,</span></div>
<div><a style="color: rgb(42, 93, 176); ">54</a><span> map: map,</span></div><div><a style="color: rgb(42, 93, 176); ">55</a><span> layers: [layer],</span></div><div><a style="color: rgb(42, 93, 176); ">56</a><span> extent: new OpenLayers.Bounds(148,-28,150,-30)</span></div>
<div><a style="color: rgb(42, 93, 176); ">57</a><span> });</span></div><div><a style="color: rgb(42, 93, 176); ">58</a><span></span></div><div><a style="color: rgb(42, 93, 176); ">59</a><span> var gridPanel = new Ext.grid.GridPanel({</span></div>
<div><a style="color: rgb(42, 93, 176); ">60</a><span> title: "Feature Table",</span></div><div><a style="color: rgb(42, 93, 176); ">61</a><span> region: "center",</span></div><div><a style="color: rgb(42, 93, 176); ">62</a><span> viewConfig: {forceFit: true},</span></div>
<div><a style="color: rgb(42, 93, 176); ">63</a><span> store: store,</span></div><div><a style="color: rgb(42, 93, 176); ">64</a><span> sm: new GeoExt.grid.FeatureSelectionModel(),</span></div><div><a style="color: rgb(42, 93, 176); ">65</a><span> cm: new Ext.grid.ColumnModel({</span></div>
<div><a style="color: rgb(42, 93, 176); ">66</a><span> defaults: {</span></div><div><a style="color: rgb(42, 93, 176); ">67</a><span> sortable: true</span></div><div><a style="color: rgb(42, 93, 176); ">68</a><span> },</span></div>
<div><a style="color: rgb(42, 93, 176); ">69</a><span> columns: [</span></div><div><a style="color: rgb(42, 93, 176); ">70</a><span> {header: "SiteCode", dataIndex: "SiteCode"}</span></div><div><a style="color: rgb(42, 93, 176); ">71</a><span> ]</span></div>
<div><a style="color: rgb(42, 93, 176); ">72</a><span> })</span></div><div><a style="color: rgb(42, 93, 176); ">73</a><span> });</span></div><div><a style="color: rgb(42, 93, 176); ">74</a><span></span></div><div><a style="color: rgb(42, 93, 176); ">75</a><span> var mainPanel = new Ext.Panel({</span></div>
<div><a style="color: rgb(42, 93, 176); ">76</a><span> renderTo: document.body,</span></div><div><a style="color: rgb(42, 93, 176); ">77</a><span> layout: "border",</span></div><div><a style="color: rgb(42, 93, 176); ">78</a><span> height: 450,</span></div>
<div><a style="color: rgb(42, 93, 176); ">79</a><span> width: 800,</span></div><div><a style="color: rgb(42, 93, 176); ">80</a><span> items: [gridPanel, mapPanel]</span></div><div><a style="color: rgb(42, 93, 176); ">81</a><span> });</span></div>
<div><a style="color: rgb(42, 93, 176); ">82</a><span> }); </span></div><div><br></div><div>............ etc<br><br>Firebug:<br>- the POST has a '200 OK' message.<br><br>Post Source is:<br><br><wfs:GetFeature xmlns:wfs="<a href="http://www.opengis.net/wfs" target="_blank" style="color: rgb(42, 93, 176); ">http://www.opengis.net/wfs</a>" service="WFS" version="1.1.0" xsi:schemaLocation="<a href="http://www.opengis.net/wfs" target="_blank" style="color: rgb(42, 93, 176); ">http://www.opengis.net/wfs</a> <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" target="_blank" style="color: rgb(42, 93, 176); ">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" style="color: rgb(42, 93, 176); ">http://www.w3.org/2001/XMLSchema-instance</a>"><wfs:Query typeName="soil_wfs:SoilDatabase_wgs84" srsName="EPSG:4326" xmlns:soil_wfs="<a href="http://greenway:8399/arcgis/services/SFAFNR00/soil_wfs/GeoDataServer/WFSServer" target="_blank" style="color: rgb(42, 93, 176); ">http://greenway:8399/arcgis/services/SFAFNR00/soil_wfs/GeoDataServer/WFSServer</a>"/></wfs:GetFeature><br>
<br>XML:<br><br><font color="#FF0000">XML Parsing Error: mismatched tag. Expected: </div>. Location: moz-nullprincipal:{3ce0d8b7-302f-4b79-a5fc-bc67887b8251} Line Number 56, Column 7:<br><br> </p><br>------^</font></div>
<div><font color="#FF0000"><br></font></div><div><font color="#FF0000"><br></font></div><div><font color="#FF0000">I also get the following in Firebug:</font></div><div><font color="#FF0000"><br></font></div><div><font color="#FF0000"><span><div>
mismatched tag. Expected: </div>.</div><div></div><div><a style="color: rgb(42, 93, 176); "> </p> (<b>that points to line 55)</b></a></div><div><a style="color: rgb(42, 93, 176); "><br></a></div><div><a style="color: rgb(42, 93, 176); "><br>
</a></div></span></font><div><font color="#FF0000"><br></font></div><div><font color="#FF0000"><font color="#000000">I don't know where to go from here. I guess there is something wrong with my proxy settings. But <a href="http://localhost:8081/FAFNR/proxy.cgi" target="_blank" style="color: rgb(42, 93, 176); ">http://localhost:8081/FAFNR/proxy.cgi</a> point to the openlayers site. </font></font></div>
<div><font color="#FF0000"><font color="#000000">The browser based WFS - GetCapabilities, DescribeFeatureTypeand GetFeature work perfectly fine. </font></font></div><div><font color="#FF0000"><font color="#000000">Any help or suggestion is more than welcome.</font></font></div>
<div><font color="#FF0000"><font color="#000000"><br></font></font></div><div><font color="#FF0000"><font color="#000000">Regards, Philipp</font></font></div></div></span>