ankhili / ArcGIS-OGC-IGN-FR

This repo is created to test OGC Services served by IGN in the ArcGIS Plateform
0 stars 1 forks source link

WFS : cannot display the service in ArcGIS Online & ArcGIS Enterprise #5

Open ankhili opened 4 years ago

ankhili commented 4 years ago

An error occur when adding the WFS on both ArcGIS Online / ArcGIS Enterprise.

KEY used for tests on ArcGIS Enterprise : n3bmjg0te91vxwdf5gwayf70

Header : automatically ArcGIS sent the Get Request with 3 versions of WFS : 1.0.0 / 1.1.0 /2.0.0

Request URL: https://maps.esrifrance.fr/portal/sharing/proxy?https://wxs.ign.fr/sfmm9c3b9ggayc9uxg48h997/geoportail/wfs?service=WFS&request=GetCapabilities&version=1.0.0 Request Method: GET Status Code: 500 Internal Server Error Remote Address: 127.0.0.1:8888 Referrer Policy: no-referrer-when-downgrade Cache-Control: private Connection: close Content-Length: 949 Content-Type: text/html;charset=utf-8 Date: Tue, 12 Nov 2019 16:06:34 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Server: Microsoft-IIS/8.5 Server: Vary: Origin X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Accept: / Accept-Encoding: gzip, deflate, br Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7 Connection: keep-alive Cookie: _ga=GA1.2.2115850218.1568122149; esri_auth=%7B%22portalApp%22%3Atrue%2C%22email%22%3A%22ankhili_esrifrance%22%2C%22token%22%3A%22BsJNiqhL7A9CwD9lVJtUgJ9sydoVcM1uZlgKRFQRg9hNOccY06Lp4Byk9Sti2knjdfGhWQVAL-anVYTV0PqcljR8LqdHLDRguos8B2ucQIoKUf07UJ7zjkCfmT_fbPkZ1pJk02AeJ-r6085MBT349GXdLYM9bW4S4wkruD6_EtRYEq_R0rBbEGMFeishjAL0hLoipG607UwDKp6S5GY4q4wCND69lJzimGkzO-h2AkI.%22%2C%22expires%22%3A1574777542818%2C%22allSSL%22%3Atrue%2C%22persistent%22%3Afalse%2C%22created%22%3A1573567942818%2C%22culture%22%3A%22fr%22%2C%22region%22%3A%22WO%22%2C%22accountId%22%3A%220123456789ABCDEF%22%2C%22role%22%3A%22org_admin%22%2C%22customBaseUrl%22%3A%22maps.esrifrance.fr%2Fportal%22%7D; APSW-query=%7B%22expires%22%3A1573585945143%7D Host: maps.esrifrance.fr Referer: https://maps.esrifrance.fr/portal/home/webmap/viewer.html?useExisting=1 Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Mobile Safari/537.36 X-Requested-With: XMLHttpRequest https://wxs.ign.fr/sfmm9c3b9ggayc9uxg48h997/geoportail/wfs?service: WFS request: GetCapabilities version: 1.0.0

KEY used for tests on ArcGIS Online : bvelmxtnku7ohe5adns1jwxe 2nd test on ArcGIS Online :

i can add the url, i can see the services but cannot display the layer on the map viewer. I don't know why the name of WFS has ".title"...

image

image

image

Request URL: https://g11n-test.mapsqa.arcgis.com/sharing/proxy?https://wxs.ign.fr/bvelmxtnku7ohe5adns1jwxe/geoportail/wfs/ Request Method: POST Status Code: 400 Bad Request Remote Address: 127.0.0.1:8888 Referrer Policy: no-referrer-when-downgrade Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: http://g11n-test.mapsqa.arcgis.com Connection: keep-alive Content-Length: 0 Date: Tue, 12 Nov 2019 16:16:10 GMT Vary: Origin Accept: / Accept-Encoding: gzip, deflate, br Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7 Connection: keep-alive Content-Length: 510 Content-Type: text/xml Host: g11n-test.mapsqa.arcgis.com Origin: http://g11n-test.mapsqa.arcgis.com Referer: http://g11n-test.mapsqa.arcgis.com/home/webmap/viewer.html?useExisting=1 Sec-Fetch-Mode: cors Sec-Fetch-Site: cross-site User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Mobile Safari/537.36 https://wxs.ign.fr/bvelmxtnku7ohe5adns1jwxe/geoportail/wfs/: <?xml version='1.0' encoding='utf-8'?> <GetFeature xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:gml='http://www.opengis.net/gml' xmlns:ogc='http://www.opengis.net/ogc' xmlns:wfs='http://www.opengis.net/wfs' xmlns='http://www.opengis.net/wfs/2.0' xmlns:ADMINEXPRESS_COG_2019='https://wxs.ign.fr/datastore/ADMINEXPRESS_COG_2019' version='2.0.0' service='WFS' count='3000'>

ankhili commented 4 years ago

Addionnal Infos from esri france support team : It seems that the Portal sent requests as POST request and IGN proxy rejects the POST request.

curl "https://bree.esrifrance.fr/portal/sharing/proxy?https://wxs.ign.fr/25zx0hde73u7hpk3c7tf9csa/geoportail/wfs/?user=support&password=support" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0" -H "Accept: /" -H "Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3" --compressed -H "Content-Type: text/xml" -H "X-Requested-With: XMLHttpRequest" -H "Connection: keep-alive" -H "Referer: https://bree.esrifrance.fr/portal/home/webmap/viewer.html" -H "Cookie: esri_auth="%"7B"%"22portalApp"%"22"%"3Atrue"%"2C"%"22email"%"22"%"3A"%"22Alain"%"22"%"2C"%"22token"%"22"%"3A"%"22MpG28fY7NZoe6SsXKXHUo0dVsu6IGQoWc-laqskCIirww3upwW-uIWTagOpRkWtbcfFYjLfCqRDHfcB-7MCSuacaIoarch9XIaMuLmIR6TB0Nyd-qipvkBDmjzI7k4J4FkGqM_n3Qy83Aq9W5RIUK5RoUp_fkztwvEMN2AkMrjWuNlDwVg8NzvZPkkeOP2Gz"%"22"%"2C"%"22culture"%"22"%"3A"%"22fr"%"22"%"2C"%"22region"%"22"%"3Anull"%"2C"%"22expires"%"22"%"3A1571742404504"%"2C"%"22allSSL"%"22"%"3Atrue"%"2C"%"22accountId"%"22"%"3A"%"220123456789ABCDEF"%"22"%"2C"%"22role"%"22"%"3A"%"22org_admin"%"22"%"7D; contentModePrefs="%"7B"%"22contentMode"%"22"%"3A"%"22Web"%"22"%"7D" --data "<?xml version='1.0' encoding='utf-8'?>"^

"<GetFeature "^

" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'"^

" xmlns:gml='http://www.opengis.net/gml'"^

" xmlns:ogc='http://www.opengis.net/ogc'"^

" xmlns:wfs='http://www.opengis.net/wfs'"^

" xmlns='http://www.opengis.net/wfs/2.0'"^

" xmlns:ADMINEXPRESS_COG_2018_CARTO='https://wxs.ign.fr/datastore/ADMINEXPRESS_COG_2018_CARTO'"^

" version='2.0.0' service='WFS' count='3000'>"^

" "^

" "^

""^

""

Portal for ArcGIS Error


Type: Status Report

Message:

Description: http.401:


Portal for ArcGIS

The same request in GET is ok

curl "https://bree.esrifrance.fr/portal/sharing/proxy?https://wxs.ign.fr/25zx0hde73u7hpk3c7tf9csa/geoportail/wfs/?user=support&password=support" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0" -H "Accept: /" -H "Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3" --compressed -H "Content-Type: text/xml" -H "X-Requested-With: XMLHttpRequest" -H "Content-Length: 517" -H "Connection: keep-alive" -H "Referer: https://bree.esrifrance.fr/portal/home/webmap/viewer.html" -H "Cookie: esri_auth="%"7B"%"22portalApp"%"22"%"3Atrue"%"2C"%"22email"%"22"%"3A"%"22Alain"%"22"%"2C"%"22token"%"22"%"3A"%"22MpG28fY7NZoe6SsXKXHUo0dVsu6IGQoWc-laqskCIirww3upwW-uIWTagOpRkWtbcfFYjLfCqRDHfcB-7MCSuacaIoarch9XIaMuLmIR6TB0Nyd-qipvkBDmjzI7k4J4FkGqM_n3Qy83Aq9W5RIUK5RoUp_fkztwvEMN2AkMrjWuNlDwVg8NzvZPkkeOP2Gz"%"22"%"2C"%"22culture"%"22"%"3A"%"22fr"%"22"%"2C"%"22region"%"22"%"3Anull"%"2C"%"22expires"%"22"%"3A1571742404504"%"2C"%"22allSSL"%"22"%"3Atrue"%"2C"%"22accountId"%"22"%"3A"%"220123456789ABCDEF"%"22"%"2C"%"22role"%"22"%"3A"%"22org_admin"%"22"%"7D; contentModePrefs="%"7B"%"22contentMode"%"22"%"3A"%"22Web"%"22"%"7D" -H "Pragma: no-cache" -H "Cache-Control: no-cache"

But the response is not well interpreted by the Portal