Re: Simple readXML which requires authentication



Hi,

no you can't.

I am not sure if you have access to the underlying WebRequest in a DataSet - but you could first read the xml using HttpWebRequest (which supports supplying credentials) and then pass the XML to the DataSet....

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Hi, I have a web application which gets data from clients via XML. Up
to now I used the DataSet.readXML("http://xmlURL.xml";) to get and
parse xml content into my database.

Now one of my clients has placed his XML on a server that requires
authentication and has provided the username and password.

I tried the following: http://<username>:<password>@ xmlURL.xml
It works if I enter the above in Firefox for example
It doesn't work though in neither of those:
IE 6 and programmatically via the application (which uses
DataSet.readXML ("http://<username>:<password>@ xmlURL.xml")).

In IE I get a file not found error, And in the application run I get a
401 unauthorized error.

My questions are:

Can I use the simple (I suppose insecure way)
http://<username>:<password>@... by maybe changing the application
configuration?

What other options do I have?

Thanks in advance, Albert



.



Relevant Pages

  • Simple readXML which requires authentication
    ... I have a web application which gets data from clients via XML. ... I used the DataSet.readXMLto get and parse xml content ... And in the application run I get a 401 unauthorized error. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Capturing Windows Username without popping challenge box in the browser
    ... With Impersonation set ... file on the IIS server or whereever your xml file is located. ... > displayed only if people with certain username are surfing the site. ... I am doing this using windows authentication. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Username und Passwort sicher ablegen
    ... codiert in eine XML oder sogar in eine Datenbank ablegen. ... > mit Username und Passwort geschützt. ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Servlet cant communicate with Database made using XML !
    ... > username and password through a Servlet, ... the Servlet has to just parse the XML document and verify the ...
    (comp.lang.java.databases)
  • Re: Username und Passwort sicher ablegen
    ... > mit Username und Passwort geschützt. ... > wieder die Source rausholen und somit auch den Username und das Passwort ... Und selbst wenn ich es Codiert im XML hinterlege... ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)