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>26</a><span> OpenLayers.ProxyHost="proxy.cgi?url=";
</span></div><div><a>27</a><span>
</span></div><div><a>28</a><span> var layer = new OpenLayers.Layer.Vector("vector", {
</span></div><div><a>29</a><span> strategies: [new OpenLayers.Strategy.Fixed()],
</span></div><div><a>30</a><span> protocol: new OpenLayers.Protocol.WFS({
</span></div><div><a>31</a><span> url: "<a href="http://greenway:8399/arcgis/services/SFAFNR00/soil_wfs/GeoDataServer/WFSServer" target="_blank">http://greenway:8399/arcgis/services/SFAFNR00/soil_wfs/GeoDataServer/WFSServer</a>",
</span></div><div><a>32</a><span> version: "1.1.0",
</span></div><div><a>33</a><span> featureType: "SoilDatabase_wgs84",
</span></div><div><a>34</a><span>
featureNS:
"<a href="http://greenway:8399/arcgis/services/SFAFNR00/soil_wfs/GeoDataServer/WFSServer" target="_blank">http://greenway:8399/arcgis/services/SFAFNR00/soil_wfs/GeoDataServer/WFSServer</a>",
</span></div><div><a>35</a><span> featurePrefix : "soil_wfs",
</span></div><div><a>36</a><span> geometryName: "Shape",
</span></div><div><a>37</a><span> srsName: "EPSG:4326"
</span></div><div><a>38</a><span> })
</span></div><div><a>39</a><span> });
</span></div><div><a>40</a><span>
</span></div><div><a>41</a><span> var store = new GeoExt.data.FeatureStore({
</span></div><div><a>42</a><span> fields: [
</span></div><div><a>43</a><span>
{name: "SiteCode", type: "string"} </span></div><div><a>44</a><span> ],
</span></div><div><a>45</a><span> layer: layer
</span></div><div><a>46</a><span> });
</span></div><div><a>47</a><span>
</span></div><div><a>48</a><span> var map = new OpenLayers.Map({allOverlays: true});
</span></div><div><a>49</a><span>
</span></div><div><a>50</a><span> var mapPanel = new GeoExt.MapPanel({
</span></div><div><a>51</a><span> title: "Map",
</span></div><div><a>52</a><span> region: "west",
</span></div><div><a>53</a><span> width: 400,
</span></div><div><a>54</a><span> map: map,
</span></div><div><a>55</a><span> layers: [layer],
</span></div><div><a>56</a><span> extent: new OpenLayers.Bounds(148,-28,150,-30)
</span></div><div><a>57</a><span> });
</span></div><div><a>58</a><span>
</span></div><div><a>59</a><span> var gridPanel = new Ext.grid.GridPanel({
</span></div><div><a>60</a><span> title: "Feature Table",
</span></div><div><a>61</a><span> region: "center",
</span></div><div><a>62</a><span> viewConfig: {forceFit: true},
</span></div><div><a>63</a><span> store: store,
</span></div><div><a>64</a><span> sm: new GeoExt.grid.FeatureSelectionModel(),
</span></div><div><a>65</a><span> cm: new Ext.grid.ColumnModel({
</span></div><div><a>66</a><span> defaults: {
</span></div><div><a>67</a><span> sortable: true
</span></div><div><a>68</a><span> },
</span></div><div><a>69</a><span> columns: [
</span></div><div><a>70</a><span> {header: "SiteCode", dataIndex: "SiteCode"}
</span></div><div><a>71</a><span> ]
</span></div><div><a>72</a><span> })
</span></div><div><a>73</a><span> });
</span></div><div><a>74</a><span>
</span></div><div><a>75</a><span> var mainPanel = new Ext.Panel({
</span></div><div><a>76</a><span> renderTo: document.body,
</span></div><div><a>77</a><span> layout: "border",
</span></div><div><a>78</a><span> height: 450,
</span></div><div><a>79</a><span> width: 800,
</span></div><div><a>80</a><span> items: [gridPanel, mapPanel]
</span></div><div><a>81</a><span> });
</span></div><div><a>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">http://www.opengis.net/wfs</a>" service="WFS" version="1.1.0" xsi:schemaLocation="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a> <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">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">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> </p> (<b>that points to line 55)</b></a></div>
<div><a><br></a></div><div><a><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">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><font color="#FF0000"><font color="#000000"><br></font></font></div><div><font color="#FF0000"><font color="#000000"> </font></font></div>
<div>                <br><br></div></div>