Skip to content

Commit

Permalink
* ContractReference.cs, DiscoveryClientProtocol.cs: Set the url from…
Browse files Browse the repository at this point in the history
… which

	  documents are being read.

svn path=/branches/mono-1-0/mcs/; revision=32767
  • Loading branch information
slluis committed Aug 24, 2004
1 parent b8d491f commit 49d75e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
@@ -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
Expand Down
Expand Up @@ -147,7 +147,7 @@ internal void ResolveInternal (DiscoveryClientProtocol prot, ServiceDescription
{
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;
Expand Down
Expand Up @@ -84,7 +84,7 @@ public DiscoveryClientProtocol ()
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");

Expand Down Expand Up @@ -131,7 +131,7 @@ public DiscoveryDocument DiscoverAny (string url)
stream = Download (ref url);
}

XmlTextReader reader = new XmlTextReader (stream);
XmlTextReader reader = new XmlTextReader (url, stream);
reader.MoveToContent ();
DiscoveryDocument doc;
DiscoveryReference refe = null;
Expand Down

0 comments on commit 49d75e4

Please sign in to comment.