<div>Hi all,</div><div>I'm using Tinyows 1.0.0 on win7 machine, postgresql 9.1 and postgis 1.5.5.</div><div>All seems to work well, I mean:</div><div><br></div><div>1) <a href="http://127.0.0.1:8080/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0">http://127.0.0.1:8080/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0</a></div>
<div>Give a good answer</div><div><br></div><div>2) <a href="http://localhost:8080/cgi-bin/tinyows.exe?service=wfs&version=1.0.0&request=getfeature&typename=posti_geom&maxfeatures=1">http://localhost:8080/cgi-bin/tinyows.exe?service=wfs&version=1.0.0&request=getfeature&typename=posti_geom&maxfeatures=1</a></div>
<div>Give a good answer</div><div><br></div><div>3) QGIS is capable to retrieve and plot the data (points)</div><div><br></div><div>So, the problems:</div><div><br></div><div>A) I'm not able from the shell of windows to launchcorrectly:</div>
<div>.\tinyows.exe --check</div><div>I get always the same error:</div><div>"Unable to open config file"</div><div>But maybe is a Windows error, because as I said by browser I'm pretty able to retrieve the information I need.</div>
<div><br></div><div>B) Most important, I'm not able to have my data on OpenLayers!</div><div>Looking at tinyows.log I had these error messages:</div><div><br></div><div>[ERROR] Element '{<a href="http://www.w3.org/2001/XMLSchema}import">http://www.w3.org/2001/XMLSchema}import</a>': Failed to locate a schema at location '<a href="http://127.0.0.1:8080/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.1.0">http://127.0.0.1:8080/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.1.0</a>'. Skipping the import.</div>
<div><br></div><div>[ERROR] Element '{<a href="http://www.opengis.net/wfs}GetFeature">http://www.opengis.net/wfs}GetFeature</a>': No matching global declaration available for the validation root.</div><div><br></div>
<div>And finally:</div><div>[ERROR] XML request isn't valid</div><div><br></div><div>The call made by TinyOws to retrieve the layer in OpenLayers seems to be (from tinyows.log):</div><div>[QUERY] <wfs:GetFeature xmlns:wfs="<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>" service="WFS" version="1.1.0" xsi:schemaLocation="<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a> <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"><wfs:Query typeName="feature:posti_geom" srsName="EPSG:4326" xmlns:feature="<a href="http://localhost:8080/">http://localhost:8080/</a>"/></wfs:GetFeature></div>
<div><br></div><div>But I'm not trying to retrieve the data in EPSG:4326, but in 3875 (or 900913)!</div><div><br></div><div>Anyway, on the other side, in Apache error.log, I get:</div><div>[client 127.0.0.1] error : No such file or directory\r, referer: <a href="http://localhost:8080/mappa.html">http://localhost:8080/mappa.html</a></div>
<div>[error] [client 127.0.0.1] I/O warning : failed to load external entity "<a href="http://127.0.0.1:8080/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0">http://127.0.0.1:8080/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0</a>"\r, referer: <a href="http://localhost:8080/mappa.html">http://localhost:8080/mappa.html</a></div>
<div><br></div><div>And, from the browser, I get the following response message:</div><div><?xml version='1.0' encoding='UTF-8'?></div><div><ows:ExceptionReport</div><div> xmlns='<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>'</div>
<div> xmlns:ows='<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>'</div><div> xmlns:xsi='<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>'</div>
<div> xsi:schemaLocation='<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a> <a href="http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd">http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd</a>'</div>
<div> version='1.1.0' language='en'></div><div> <ows:Exception exceptionCode='InvalidParameterValue' locator='request'></div><div>  <ows:ExceptionText>XML request isn't valid</ows:ExceptionText></div>
<div> </ows:Exception></div><div></ows:ExceptionReport></div><div><br></div><div><br></div><div>I don't know what to do, things seems to work fine except on OpenLayers...</div><div><br></div><div><br></div>
<div>I call the tiny_layer in OpenLayers like that:</div><div>var points = new OpenLayers.Layer.Vector("punti prova", {</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>strategies: [new OpenLayers.Strategy.Fixed()],</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>projection: new OpenLayers.Projection("EPSG:900913"),</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 href="http://localhost:8080/cgi-bin/tinyows.exe">http://localhost:8080/cgi-bin/tinyows.exe</a>?",</div><div><span class="Apple-tab-span" style="white-space:pre">           </span>version: "1.1.0",</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>featureType: "posti_geom",</div><div><span class="Apple-tab-span" style="white-space:pre">         </span>featureNS: "<a href="http://localhost:8080/">http://localhost:8080/</a>",</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>readFormat: new OpenLayers.Format.GML({</div><div>                    'internalProjection': new OpenLayers.Projection("EPSG:900913"),</div>
<div>                    'externalProjection': new OpenLayers.Projection("EPSG:900913")</div><div>        })</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>})</div><div>});</div><div>
<br></div><div>The map is in 900913, with OSM as base layer (the OSM map is loaded without problem).</div><div><br></div><div><br></div><div>Finally my config.xml file:</div><div><tinyows online_resource="<a href="http://127.0.0.1:8080/cgi-bin/tinyows.exe">http://127.0.0.1:8080/cgi-bin/tinyows.exe</a>"</div>
<div>schema_dir="C:\PostgreSQL\EnterpriseDB-ApachePHP\apache\www\tinyows\schema\" log="C:\PostgreSQL\EnterpriseDB-ApachePHP\apache\logs\tinyows.log" log_level="7"></div><div><br></div><div>
<span class="Apple-tab-span" style="white-space:pre"> </span><pg host="localhost" user="***" password="***" dbname="***" port="5432"/></div><div><span class="Apple-tab-span" style="white-space:pre">    </span><metadata name="TinyOWS Server" title="TinyOWS Server - Demo Service" /></div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">     </span><layer retrievable="1"</div><div><span class="Apple-tab-span" style="white-space:pre">          </span>queryable="1"</div><div>
<span class="Apple-tab-span" style="white-space:pre">         </span>writable="0"</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>ns_prefix="tows"</div><div><span class="Apple-tab-span" style="white-space:pre">           </span>ns_uri="<a href="http://localhost:8080/">http://localhost:8080/</a>"</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>server="<a href="http://localhost:8080/">http://localhost:8080/</a>"</div><div><span class="Apple-tab-span" style="white-space:pre">         </span>name="posti_geom"</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>title="posti_geom_tiny"</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>schema="public"</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>srid="900913,3857,4326" /></div>
<div><br></div><div></tinyows></div><div><br></div><div>Thanks for any help!!!!!</div><div><br></div><div>Riccardo</div>