473,507 Members | 2,545 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataSet->ReadXmlSchema and Proxy server

I'm trying to use the ReadXmlSchema method of the DataSet class from behind a firewall/proxy server and can't get it to work. I can run the code on a machine not behind the firewall and it works fine, but I can't figure out a way to get ReadXmlSchema to use a Proxy

This works with no proxy server but gets a (403) error when run behind the firewall
myXmlReader = new XmlTextReader(schema)
myXmlDataDocument->DataSet->ReadXmlSchema(myXmlReader)

This gets a (407) Proxy Authentication Required error, closer maybe, but still doesn't work
NetworkCredential *nc = new NetworkCredential(S"username",S"pwd",S"domain")
WebProxy *myProxy = new WebProxy("http://proxyserver:port",true)
myProxy->Credentials = nc

GlobalProxySelection::Select = myProxy

myXmlReader = new XmlTextReader(schema)
myXmlDataDocument->DataSet->ReadXmlSchema(myXmlReader); // does this not use the GlobalProxySelection??

Any suggestions?
Nov 12 '05 #1
0 1339

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

Similar topics

0
3055
by: Patrick Kearney | last post by:
Hi All, I have seen this type of question raised in various groups but no one has supplied a definitive answer. I am trying to load a dataset schema that has an xs:include. Project policy is to...
0
1485
by: Eric van Wijk | last post by:
Hi, When I try to assign a schema to a dataset using the ReadXmlSchema method, that schema does not import any schemas included with xs:import. Both schema's are stored in the assembly as...
1
3562
by: Tarun Upadhyay | last post by:
I am trying to read the standard UDDI schema using a DataSet. however, it always chokes with error. Here are the full details: Schema used: http://uddi.org/schema/uddi_v3.xsd C# (.NET) calls...
0
1202
by: Ekempd | last post by:
Hi I have a complex VALID schema, and I try to load into a dataset, but I get an Error: unidentified data type, but the type exist !!, and the xsd is valid (I tested against XML) As far I...
0
1160
by: Simon Segal | last post by:
Hi all I am getting an error using ReadXmlSchema method of a dataset. An unhandled exception of type 'System.Data.DataException' occurred in system.data.dll Additional information: Undefined...
7
6210
by: Sharon | last post by:
I have successfully loaded a DataSet object with a XML schema (XSD). Now I wish to populate the tables that was created in the DataSet. I have an XML file/string that contain all the needed data...
0
1013
by: Phani | last post by:
Hi, Here i have two problems. a) How can i load an xml schema in a treeview using C# 2005? b) I am having the following problem when i try to read an xml schema using...
13
2868
by: Jerry C | last post by:
I am using some sample code from gotdotnet to Create DataSet mappings from a xsd schema. I am geting this error. code and error below. I might mention there is also a publictypelibrary file with...
2
2600
by: Sambo | last post by:
Hi All I've had a look around and noticed a couple of others having this issue, but with no replies. Hopefully someone can help with this. I have a schema (let's call it "Schema1.xsd") that I...
5
3580
by: Lucvdv | last post by:
This would better be described by 'serialization' than 'interop', but I didn't find a newsgroup that seems closer on topic. The problem in a few words: I save data with DataSet.WriteXML, but I...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
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...
1
7030
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
5623
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
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.