Hello Chris and everyone else,
In response to my previous message that I posted regarding connecting GeoServer to “supposedly” WFS compliant clients;
ArcExplorer just does not want to work with any WFS, even WFS’s tested that worked with FME’s Universal Viewer. ArcExplorer probably wants an ArcIMS WFS service.
The WFS’s I use are located at http://www.safe.com/wfs/index.htm
and all 3 seem to work.
FME still has a problem with GeoServer. One problem is FME’s fault, the other is mine (I think), and I will elaborate on my problem later.
I read through the 105 page OpenGIS WFS compliance document for my benefit and to figure out FME’s problem. The WFS standard asks for an initial connection to a WFS using
http://someserver.com/base_path/script
where a client is supposed to initiate …/script?REQUEST=GetCapabilities&…
but GeoServer requires this;
http://someserver.com/geoserver/GetCapabilities?..
So, my first questions are these. Chris, would the dispatcher servlet allow REQUEST at the base path of GeoServer, and/or is there another way to “emulate” CGI paths? Also, how come in the OpenGIS WFS document do they only use CGI? Am I using the correct paths?
Now for my next problem. When I display GML in my browser using the 3 WFS servers listed at the beginning of this message, I get namespace information such as this for
http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?REQUEST=GetCapabilities&SERVICE=WFS&VERSION=1.0.0
<WFS_Capabilities version=“1.0.0” updateSequence=“0” xmlns=“http://www.opengis.net/wfs” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=“http://www.opengis.net/wfs http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-capabilities.xsd”>
and this for
http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?REQUEST=GetFeature&TYPENAME=park&SERVICE=WFS&VERSION=1.0.0
<wfs:FeatureCollection xmlns=“http://www.ttt.org/myns” xmlns:myns=“http://www.ttt.org/myns” xmlns:wfs=“http://www.opengis.net/wfs” xmlns:gml=“http://www.opengis.net/gml” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=“http://www.opengis.net/wfs http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-basic.xsd http://www.ttt.org/myns http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=park”>
But when I disply the same for my dataset I get incorrect and/or missing schema references (I think).
Execute this;
http://192.168.1.222/geoserver/GetCapabilities?SERVICE=WFS&VERSION=1.0.0
I get this;
<WFS_Capabilities version=“1.0.0” xmlns=“http://www.opengis.net/wfs” xmlns:myns=“http://192.168.1.222/myns” xmlns:ogc=“http://www.opengis.net/ogc”>
Execute this;
I get this;
<wfs:FeatureCollection xmlns=“http://192.168.1.222/myns” xmlns:gml=“http://www.opengis.net/gml” xmlns:wfs=“http://www.opengis.net/wfs” xmlns:xs=“http://www.w3.org/2001/XMLSchema-instance” xs:schemaLocation=“http://192.168.1.222/myns http://192.168.1.222/geoserver/DescribeFeatureType?typeName=myns:citytown http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd”>
I believe that if the schema locations could be corrected to point to my local machine, then FME should be able to muddle through GeoServer.
Sorry for this novel, but I wanted to be able to communicate my problem successfully on the first attempt.
Thank you for any help,
Darren H.