473,698 Members | 2,833 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 1383

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

Similar topics

0
3080
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 Xmlresolver in order to supply the embedded referenced schema. I have tried passing a custom resolver to...
0
1497
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
3580
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
1219
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 of schema cause this...
0
1170
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
6222
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 for several tables at once. The question is:
0
1034
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
2891
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
2623
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 "DataTypes.xsd") to reference some common data types.
5
3594
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
8683
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8611
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6531
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4372
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.