2 // System.Web.Services.Discovery.DiscoveryReference.cs
\r
5 // Dave Bettin (javabettin@yahoo.com)
\r
7 // Copyright (C) Dave Bettin, 2002
\r
11 using System.Xml.Serialization;
\r
13 namespace System.Web.Services.Discovery {
\r
14 public abstract class DiscoveryReference {
\r
18 private string defaultFilename;
\r
19 private DiscoveryClientProtocol clientProtocol;
\r
21 #endregion // Fields
\r
23 #region Constructors
\r
26 protected DiscoveryReference ()
\r
28 throw new NotImplementedException ();
\r
31 #endregion // Constructors
\r
36 public DiscoveryClientProtocol ClientProtocol {
\r
37 get { return clientProtocol; }
\r
38 set { clientProtocol = value; }
\r
43 public virtual string DefaultFilename {
\r
44 get { return defaultFilename; }
\r
48 public abstract string Url {
\r
53 #endregion // Properties
\r
58 protected static string FilenameFromUrl (string url)
\r
60 throw new NotImplementedException ();
\r
63 public abstract object ReadDocument (Stream stream);
\r
66 public void Resolve ()
\r
68 throw new NotImplementedException ();
\r
71 protected internal abstract void Resolve (string contentType, Stream stream);
\r
73 public abstract void WriteDocument (object document, Stream stream);
\r
75 #endregion // Methods
\r