SharpMap.Web.Wfs.Client() with Credentials not working

Topics: Algorithms, SharpMap v0.9 / v1.x
Dec 17, 2013 at 3:22 AM
Edited Dec 17, 2013 at 3:23 AM
I'm using SharpMap 1.0 Final (SharpMap, Version=1.0.4.0, Culture=neutral, PublicKeyToken=null)
I'm trying to connect to a WFS Feed with Basic HTTP Authentication.
Using the following constructor in the SharpMap.Web.Wfs namespace:
public Client(string url, IWebProxy proxy, ICredentials credentials) : this(url, proxy, 10000, credentials, "") { }
Looking at the code inside, I npoticed the public XmlDocument GetRemoteXml() { } method doesn't pass in the ICredentials _credentials to the WebRequest object. This causes a 401 error.

Could you please patch this or point me to a stable version wich has this fixed?

Thanks,
Riyaz.
Coordinator
Dec 17, 2013 at 11:04 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.