AnsweredAssumed Answered

Adding secure wms service to ArcGIS Pro

Question asked by mybohrer on Jan 14, 2019

Hi, I'm trying to add a secure WMS service to ArcGIS Pro. It works with non secured WMS services but comes up with a request for user and password even if they are given in code. In fiddler you can see that the Authorization credentials are not commited for the connection. 

The code is as follows:


QueuedTask.Run(() =>
var serverConnection = new CIMInternetServerConnection { URL = wmsLayerEndpoint.Url, Password = wmsLayerEndpoint.Password, User = wmsLayerEndpoint.Username };
var connection = new CIMWMSServiceConnection { ServerConnection = serverConnection, Description = caption, LayerName = name };

var layer = LayerFactory.Instance.CreateLayer(connection, MapView.Active.Map);


Did I miss something or is there a bug.

Help would be highly appreciated.