Open ankhili opened 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'>"^
"
" "^
""^
""
Type: Status Report
Message:
Description: http.401:
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
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