Hello i'm trying to use Geoserver WFS with a Ionic Enterprise client.I
obtain an error when the client performs a WFS GetFeature HTTP POST
request:
<wfs:GetFeature service="WFS" version="1.0.0"
outputFormat="GML"
xmlns:topp="http://www.openplans.org/topp"
xmlns:wfs="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://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
<wfs:Query typeName="topp:states">
</wfs:Query>
</wfs:GetFeature>
<ServiceExceptionReport version="1.2.0"
xsi:schemaLocation="http://www.opengis.net/ogc
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
<ServiceException>
java.lang.RuntimeException: No response: ( object = class
net.opengis.wfs.impl.FeatureCollectionTypeImpl, outputFormat = GML )
No response: ( object = class
net.opengis.wfs.impl.FeatureCollectionTypeImpl, outputFormat = GML )
</ServiceException>
</ServiceExceptionReport>
The problem comes from the outputFormat="GML" line.
Geoserver expects GML2 or GML3 instead of GML.
Is this a bug from geoserver or from Ionic?
Best regards,
Nicolas CASTEL
Nicolas CASTEL ha scritto:
Hello i'm trying to use Geoserver WFS with a Ionic Enterprise client.I
obtain an error when the client performs a WFS GetFeature HTTP POST
request:
<wfs:GetFeature service="WFS" version="1.0.0"
outputFormat="GML"
xmlns:topp="http://www.openplans.org/topp"
xmlns:wfs="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://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
<wfs:Query typeName="topp:states">
</wfs:Query>
</wfs:GetFeature>
<ServiceExceptionReport version="1.2.0"
xsi:schemaLocation="http://www.opengis.net/ogc
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
<ServiceException>
java.lang.RuntimeException: No response: ( object = class
net.opengis.wfs.impl.FeatureCollectionTypeImpl, outputFormat = GML )
No response: ( object = class
net.opengis.wfs.impl.FeatureCollectionTypeImpl, outputFormat = GML )
</ServiceException>
</ServiceExceptionReport>
The problem comes from the outputFormat="GML" line.
Geoserver expects GML2 or GML3 instead of GML.
Is this a bug from geoserver or from Ionic?
It seems to me it's a bug from Ionic, since:
* GeoServer does not advertise the support for a "GML" output format
in the WFS capabilities
* According to the WFS 1.0 specification, the default and only output format that must be supported is "GML2", whilst in the 1.1.0 spec the default changed to "text/xml; subtype=gml/3.1.1" and again it's the only format that's required to be supported.
Cheers
Andrea