05-19-2017 10:00 AM
Our client is getting WFS services with HTTPS. These services are hosted in ESRI India's environment.
These services can be easily added to Geospatial Portal but while adding features, it doesn't display anything and shows an error saying - "Service returned an exception."
However, these services can be easily displayed in Gaia and QGIS.
Here are the service URLs for your reference -
We tried even in GeoMedia but unable to connect.
Need your suggestions to display these services in our Geospatial Portal.
05-22-2017 02:07 AM
Hi Shashank Mathur,
How do you actually connect to those services from a desktop? Do you supply some specific certificate? Is this certificate available on the Portal server and for the user / AppPool running Portal instance?
I tried to reach them, and they strangely asked me for some certificate and later refused to display anything. Now I'm constantly getting 403 - Forbidden code.
05-22-2017 08:28 AM
I think the client certificate is a red herring here, it doesn't look to be mandatory and the service follows through with processing the request.
The problem is that the service says it supports WFS 2.0, while the following request:
POST https://gisportal.niit-tech.in/esriportal/services/Baudh/Boudh_WaterNetwork/MapServer/WFSServer HTTP/1.1 content-type: text/xml Host: gisportal.niit-tech.in Content-Length: 299 <GetFeature xmlns="http://www.opengis.net/wfs/2.0" version="2.0.0" service="WFS" xmlns:p1="https:gisportal.niit-tech.in/esriportal/services/Baudh/Boudh_WaterNetwork/MapServer/WFSServer" count="4000"> <Query typeNames="p1:WaterScadaSensor" srsName="urn:ogc:def:crs:EPSG:6.9:3857" /> </GetFeature>
Results in the following error:
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/xml Server: Microsoft-IIS/8.5 Server: Apache-Coyote/1.1 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Mon, 22 May 2017 15:11:56 GMT Content-Length: 265 <ows:ExceptionReport version='2.0.0' language='en' xmlns:ows='http://www.opengis.net/ows'><ows:Exception exceptionCode='NoApplicableCode'><ows:ExceptionText>The expected xml element GetFeature was not found.</ows:ExceptionText></ows:Exception></ows:ExceptionReport>
It expects the GetFeature element to be from namespace http://www.opengis.net/wfs which is an invalid behavior according to the OGC spec.
Portal defaults to using the highest available WFS version. My Geospatial Portal instance, does not allow for selecting 1.1.0 explicitly and have it be used. I have a vague memory of this being a known issue.
On the other hand, my GeoMedia Desktop 15.00.0000.10258 connects to the WFS R/O and displays it without a problem. That's because it used the KVP binding instead of the XML binding.
05-30-2017 02:30 AM
But I am unable to connect this service in GeoMedia v 16. While connecting, its throwing an error message saying "Schema declaration for namespace 'https:gisportal.niit-tech.in/esriportal/services/Baudh/Boudh_WaterNetwork/MapServer/WFSServer' is not found."
But I can connect and display features in Gaia and QGIS.
06-14-2019 02:28 AM
We want to include such a WFS in Geomedia. This does not work (as described). Is there already a solution for such MapServer WFS services and Geomedia Desktop? I also get the described error message ("Namespace not found").
The URL of the service looks like this, but it is not publicly accessible.
I think the problem is the same as the one described above.