I am trying to add an external (password protected) WMS to our enterprise portal.
After being prompted to login, I have been getting the error message, that the service does not exist or is not available. I am able to add this service in ArcGIS Pro with the same url, so it does exist and is available.
I have also added all certificates as mentioned here: https://community.esri.com/t5/arcgis-enterprise-portal-questions/problems-adding-external-wms-refere...
I have also added the wms domain as trusted server, so I am really out of ideas.
Additional info: I am using the latest ArcGIS Portal 11.2
Solved! Go to Solution.
Ok, I fixed it myself: The server I wanted to connect to had a faulty CORS config. I only noticed that, because I used the developer console and saw the CORS error pop up when trying to connect to the WMS.
When disabling CORS on my browser (do not do that), I was able to connect to it and create the item.
Maybe the error message displayed by the portal could use some improvement to hint to what the response of the server is.
Ok, I fixed it myself: The server I wanted to connect to had a faulty CORS config. I only noticed that, because I used the developer console and saw the CORS error pop up when trying to connect to the WMS.
When disabling CORS on my browser (do not do that), I was able to connect to it and create the item.
Maybe the error message displayed by the portal could use some improvement to hint to what the response of the server is.
@JonasNeubürger For future reference, there is a tool in Portal which can be used to let you know the response that Portal is receiving, it's called the checkURL tool. Here's how you use it:
CheckURL via Portal:
Keep in mind that any secured pages may return a 403 (forbidden error) due to the need to login.
Thanks for the reply!
I did try that, but got a 200 status code just like you, with secured=false (and a 403 when I used a private window, where I was not authenticated). That's also why I was confused about it not working.