Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - XmlTextReader and Proxy Server Authentication [Thread Next] Re: XmlTextReader and Proxy Server AuthenticationTo: NULL Date: 9/4/2005 10:59:00 AM Chris Arnold wrote: > We have been using a very simple XmlTextReader object to access an xml file > located on an http server. > > Every thing's straight forward so far. > > Some of our clients have very protective Proxy Servers that require > authentication before they allow any external communications. > > Now, we have solved this problem for all of our Web Service communications, > but we cannot find a solution for this simple XmlTextReader. > > I can, obviously, supply Credentials whilst setting the XmlResolver property > of the XmlTextReader object - but these only seem to be picked up by the > end-point server, not the Proxy in-between. Provide your custom XmlResolver and in GetEntity() method open connection to the resource using HttpWebRequest with HttpWebRequest.Proxy property set. Return Stream from GetEntity(). -- Oleg Tkachenko [XML MVP, MCAD] http://www.xmllab.net http://blog.tkachenko.com | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
