diff options
author | Lluis Sanchez <lluis@novell.com> | 2004-08-24 21:05:20 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2004-08-24 21:05:20 +0400 |
commit | 49d75e482aebc9d3b97484fd4ca9fa577148a5d2 (patch) | |
tree | 5a9bdc4f97d1e8e446e14051fbb0f2a7de3c11c9 | |
parent | b8d491f37931884c54b72fe6b0e22c4323d4bb4f (diff) |
* ContractReference.cs, DiscoveryClientProtocol.cs: Set the url from which
documents are being read.
svn path=/branches/mono-1-0/mcs/; revision=32767
3 files changed, 8 insertions, 3 deletions
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog b/mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog index 0ef4271cdd8..9e52d2feea5 100755 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog +++ b/mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog @@ -1,3 +1,8 @@ +2004-08-24 Lluis Sanchez Gual <lluis@ximian.com> + + * ContractReference.cs, DiscoveryClientProtocol.cs: Set the url from which + documents are being read. + 2004-06-13 Gert Driesen <drieseng@users.sourceforge.net> * SchemaReference.cs: corrected namespace diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ContractReference.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/ContractReference.cs index 54b2225e8c7..75fb86b5685 100755 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ContractReference.cs +++ b/mcs/class/System.Web.Services/System.Web.Services.Discovery/ContractReference.cs @@ -147,7 +147,7 @@ namespace System.Web.Services.Discovery { {
string contentType = null;
Stream stream = prot.Download (ref url, ref contentType);
- XmlTextReader reader = new XmlTextReader (stream);
+ XmlTextReader reader = new XmlTextReader (url, stream);
reader.MoveToContent ();
DiscoveryReference refe;
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs index e24e2f10c43..21fc58e63cb 100755 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs +++ b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs @@ -84,7 +84,7 @@ namespace System.Web.Services.Discovery { public DiscoveryDocument Discover (string url)
{
Stream stream = Download (ref url);
- XmlTextReader reader = new XmlTextReader (stream);
+ XmlTextReader reader = new XmlTextReader (url, stream);
if (!DiscoveryDocument.CanRead (reader))
throw new InvalidOperationException ("The url '" + url + "' does not point to a valid discovery document");
@@ -131,7 +131,7 @@ namespace System.Web.Services.Discovery { stream = Download (ref url);
}
- XmlTextReader reader = new XmlTextReader (stream);
+ XmlTextReader reader = new XmlTextReader (url, stream);
reader.MoveToContent ();
DiscoveryDocument doc;
DiscoveryReference refe = null;
|