473,405 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Reading XML files on WebServer

Hi,

I am wanting to read an XML file sitting on a server and
am wondering if I will run into problems with firewalls
and/or proxy servers using the following simple bit of
code:
XmlTextReader reader = new XmlTextReader
("http://www.myserver.com/myxmlfile.xml");

It works fine with my interent connection.

Nov 12 '05 #1
2 2669
If some of the users are behind a proxy server it may cause a problem.
Especially authentication proxy server. If you concern about these
circumstances I suggest creating a WebRequest object and set the correct
credentials, proxy server and then get the WebResponse object.

Once you get a WebResponse object you can get the Stream and load your XML
document from that stream.

HTH,
--
Victor Hadianto
http://synop.com/Products/SauceReader/

"Gordon" <an*******@discussions.microsoft.com> wrote in message
news:43****************************@phx.gbl...
Hi,

I am wanting to read an XML file sitting on a server and
am wondering if I will run into problems with firewalls
and/or proxy servers using the following simple bit of
code:
XmlTextReader reader = new XmlTextReader
("http://www.myserver.com/myxmlfile.xml");

It works fine with my interent connection.


Nov 12 '05 #2
Gordon,

XmlReader will use the HTTPWebRequest for connecting to the URL you specify
using the user credentials. If HTTPWebRequest succeeds, you will read the
file.

HTH,
Amol

"Gordon" <an*******@discussions.microsoft.com> wrote in message
news:43****************************@phx.gbl...
Hi,

I am wanting to read an XML file sitting on a server and
am wondering if I will run into problems with firewalls
and/or proxy servers using the following simple bit of
code:
XmlTextReader reader = new XmlTextReader
("http://www.myserver.com/myxmlfile.xml");

It works fine with my interent connection.

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: phpfrizzle | last post by:
Hi there, I have built a CMS, and in one part you have to be able to delete images. Structure like this: _root --> folder "img" --> file "1.jpg" --> file "2.jpg" --> folder "CMS" ...
1
by: Joel Goldstick | last post by:
I wanted to write a simple page to let me choose a directory and then list the files in it. The end goal was to make an easy way to copy all the file names in a directory. I tested with Opera7,...
1
by: Dole | last post by:
We have a problem with caching of js Files in our application. The situation is that in some location our application is not running well - the problem we identified was that not the actual js is...
1
by: James Walker | last post by:
Hi there, I'm just starting to write my second ASP.NET webpage in C# and want some way of easily splitting out those files that are needed to be uploaded to the webserver - i.e. i create a...
3
by: Steven Burn | last post by:
The application; Service on my webserver that allows a user to upload their HOSTS file for functions to verify the contents are still valid. Uses; 1. XMLHTTP (MSXML2) 2. FileSystemObject...
2
by: chris | last post by:
Hello, On a local website but i want to access data on a remote drive (a mapped drive). The data are Foxpro files on a directeory of a mapped drive. I have a problem with security ( no tabel...
0
by: Camilo | last post by:
I'm trying to make a progress bar for when our client application begins to upload files to a webservice. I have done a soapextension in the client-side that tries to read the position of the...
2
by: AAJ | last post by:
Hi all I have a few questions about file locations with VS2005, localhost WidowsXP and remotehost Server2003, and I wonder if anyone can help me get started 1) If I build a web site on my...
1
by: aaapaul | last post by:
What is the best way to transfer the necessary files of a website to the webserver. In VS2003 there was a possibility to say Project copy -only files, which are necessary for running ! I...
2
by: prakharv | last post by:
Hi All, Below is the code which I am using to upload a jpeg file to the server. But the problem I am facing is that it is not copying the entire contents of the image file to the webserver and it...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.