What is the better way to implement a request/response in .NET when dealing with just getting an xml web resource for the external source and process it to your system? By the way, to access this xml resource it needs an authentication or not, but if the resource has an authentication it use the "Basic authentication".
I tried webrequest/webresponse then use try/catch
to know if it needs to be authenticated and use some javascript to popup a window for login. I'm not sure if this is the way I should implement this kind of functionality.
Requirements should be: the system should able to download an xml from external source, if the external source url has an authentication the system should allow the user to authenticate it by providing a login window. Once done and downloaded the xml content the system will process the data and save it to the database.