473,569 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataSet->ReadXmlSchem a 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(s chema)
myXmlDataDocume nt->DataSet->ReadXmlSchema( myXmlReader)

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

GlobalProxySele ction::Select = myProxy

myXmlReader = new XmlTextReader(s chema)
myXmlDataDocume nt->DataSet->ReadXmlSchema( myXmlReader); // does this not use the GlobalProxySele ction??

Any suggestions?
Nov 12 '05 #1
0 1352

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

Similar topics

0
3068
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 have all schemas as embedded resources but there appears to be no means by which the DataSet.ReadXmlSchema method can be induced to use a custom...
0
1487
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 embedded resources (in the same namespace).: The Code: templateDocument = new XmlDataDocument();
1
3567
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 made: public readonly DataSet Schema; Schema = new DataSet(); Schema.ReadXmlSchema(this.SchemaFile); Following exception is returned:
0
1206
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 read from this forum, the dataset have some limitation reading complex schema, but there is some oficial information from microsoft about what kind...
0
1166
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 data type: 'pNum'. Where the schema data type is defined something like below <xsd:simpleType name="pNum" final="union">
7
6213
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 in the same format as the XSD (the XML file/string was created using this same schema). The XML file/string may contain data for a single table or...
0
1017
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 DataSet.ReadXmlSchema("MyFile.xsd")? "DataSet doesn't support 'union' or 'list' as simpleType."
13
2882
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 this file I may have to use it in some way. I am very new at XML so some examples or articles would be helpfull. The error is:
2
2606
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 want to read into an untyped DataSet using the ReadXmlSchema method. The problem is that "Schema1.xsd" imports another schema (let's call it...
5
3584
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 get different data back when I read it later with DataSet.ReadXml. More detail:
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7983
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5223
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3657
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2117
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 we have to send another system
0
946
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.