Skip to main content
We have an inspire transport networks water dataset that we would like to setup a WFS service for. The data is already in gml format and validates ok with the XSD’s provided by FME. I have tried to follow the article: https://knowledge.safe.com/articles/How_To/How-to-Create-a-WFS-Service-Using-FME-Server and indeed I do get getCapabilities to work and also manage to get data out through a web browser. The actual server is inside our firewalls - but can be seen through php here:

 

 

http://153.44.6.24/inspireWFS/php/dataRequest.php?version=1.1.0&request=GetCapabilities

 

 

or to get some data (be a bit patient)

 

 

http://153.44.6.24/inspireWFS/php/dataRequest.php?version=1.1.0&request=GetFeature&typeName=kyv_wfs:WaterwayNode

 

 

The problem is when using the data inspector or other software to view the data. Now I am doing it inside our firewall, Thus, there is no script in between to further mess things up with links and what not... It all looks promising and I can choose within the valid featuretypes for transportnetwork water.

 

 

 

 

But I do get an error:

 

 

Received HTTP response header: 'Date: Fri, 19 Jun 2015 11:48:08 GMT'

 

URI 'http://153.44.1.138:8081/fmedatastreaming/test_ola/genericWFS_V2.fmw?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=kyv_wfs%3AWaterwayNode&NAMESPACE=xmlns%28kyv_wfs%3Dhttp%3A%2F%2Fwww.safe.com%2Fgml%2Ffme%29&OUTPUTFORMAT=text%2Fxml%3B%20subtype%3Dgml%2F3.1.1' mapped to 'http://153.44.1.138:8081/fmedatastreaming/test_ola/genericWFS_V2.fmw?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=kyv_wfs%3AWaterwayNode&NAMESPACE=xmlns%28kyv_wfs%3Dhttp%3A%2F%2Fwww.safe.com%2Fgml%2Ffme%29&OUTPUTFORMAT=text%2Fxml%3B%20subtype%3Dgml%2F3.1.1'

 

'http://153.44.1.138:8081/fmedatastreaming/test_ola/genericWFS_V2.fmw?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=kyv_wfs%3AWaterwayNode&NAMESPACE=xmlns%28kyv_wfs%3Dhttp%3A%2F%2Fwww.safe.com%2Fgml%2Ffme%29&OUTPUTFORMAT=text%2Fxml%3B%20subtype%3Dgml%2F3.1.1' mapped to 'C:\\Users\\4362\\AppData\\Local\\Temp\\FME_XSD_CACHE\\fmexsd_1434713403790_2280.xml'

 

Parsing schema document 'C:\\Users\\4362\\AppData\\Local\\Temp\\FME_XSD_CACHE\\fmexsd_1434713403790_2280.xml' ...

 

The top-level type definition referred to by the 'type' attribute in the element declaration is missing from the XML Schema

 

QName: 'kyv_wfs:fme_geometry{0}' | namespace uri:'http://www.safe.com/gml/fme'

 

QName: '' | namespace uri:'http://www.w3.org/2001/XMLSchema'

 

<element minOccurs="0" name="fme_geometry{0}" type=""/>

 

The XML Module halted on error, see the logfile for details

 

Failed to read features from 'http://153.44.1.138:8081/fmedatastreaming/test_ola/genericWFS_V2.fmw' using 'WFS' reader.

 

 

 

(Error in bold) I am not sure at all what happens here - It sorts of don’t get the xsd / xml right or something? Any ideas? Looking at the xml it looks different from other working examples. Where can I set or change?

 

Thanks,

 

Ola
Be the first to reply!

Reply