Hexagon Geospatial
MENU

WebGIS

Need a push in the right direction when configuring WebMap, Portal or SDI services? Looking for hints and tips, or just looking for Ideas and information? The WebGIS discussion board is where you start those discussions, connect and share information.
Showing results for 
Search instead for 
Do you mean 
Reply
New Contributor
Posts: 4
Registered: ‎03-03-2016

Unable to display features from a WFS with HTTPS in Geospatial Portal

Hi Team,

 

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 -

 

https://gisportal.niit-tech.in/esriportal/services/Baudh/Boudh_WaterNetwork/MapServer/WFSServer

https://gisportal.niit-tech.in/esriportal/services/Baudh/Boudh_WaterNetwork/MapServer/WFSServer

https://gisportal.niit-tech.in/esriportal/services/Baudh/HOSPITAL/MapServer/WFSServer

 

We tried even in GeoMedia but unable to connect.

 

Need your suggestions to display these services in our Geospatial Portal.

 

 

Regards,

Shashank Mathur

 

Technical Evangelist
Posts: 1,118
Registered: ‎09-11-2015

Re: Unable to display features from a WFS with HTTPS in Geospatial Portal

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.

 

Thanks,

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Staff
Posts: 294
Registered: ‎11-05-2015

Re: Unable to display features from a WFS with HTTPS in Geospatial Portal

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.

Staff
Posts: 84
Registered: ‎01-13-2017

Re: Unable to display features from a WFS with HTTPS in Geospatial Portal

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.

Staff
Posts: 84
Registered: ‎01-13-2017

Re: Unable to display features from a WFS with HTTPS in Geospatial Portal

Hi I tried using these URLs in Geospatial Portal with version 1.1.0. Its working. Thanks a lot.

Occasional Contributor
Posts: 6
Registered: ‎03-02-2017

Re: Unable to display features from a WFS with HTTPS in Geospatial Portal

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.

https://map.energie360.ch/arcgis/services/extern/kundenanfrage_erz/MapServer/WFSServer?SERVICE=WFS&V...

I think the problem is the same as the one described above.

 

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.