2002-08-03 Tim Coleman <tim@timcoleman.com>
authorTim Coleman <tim@mono-cvs.ximian.com>
Mon, 5 Aug 2002 05:52:55 +0000 (05:52 -0000)
committerTim Coleman <tim@mono-cvs.ximian.com>
Mon, 5 Aug 2002 05:52:55 +0000 (05:52 -0000)
        * DiscoveryDocument.cs:
                Added XmlIgnore attribute to References property
        * DiscoveryDocumentReference.cs:
                Implemented Ref/Url properties and added XmlIgnore
                attributes.

svn path=/trunk/mcs/; revision=6403

mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocument.cs
mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentReference.cs

index 4dc53dbc2a09ea1bb96aa66f999c1c7904649576..cbd929460ac368b044b6f2c7f3e83e8299442684 100755 (executable)
@@ -1,3 +1,10 @@
+2002-08-03  Tim Coleman <tim@timcoleman.com>
+       * DiscoveryDocument.cs:
+               Added XmlIgnore attribute to References property
+       * DiscoveryDocumentReference.cs:
+               Implemented Ref/Url properties and added XmlIgnore
+               attributes.
+
 2002-07-28  Dave Bettin <javabettin@yahoo.com>
                * ContractReference.cs
                * ContractSearchPattern.cs
@@ -22,4 +29,4 @@
                * XmlSchemaSearchPattern.cs
                        [ Added stubs]
 
-       
\ No newline at end of file
+       
index 4d6628f7c0a3ec2a56d938021c5ab001b59d1483..7c23bf673ddcac0bea303a4ed9c63d24a1cf2aa7 100755 (executable)
@@ -3,13 +3,16 @@
 //\r
 // Author:\r
 //   Dave Bettin (javabettin@yahoo.com)\r
+//   Tim Coleman (tim@timcoleman.com)  \r
 //\r
 // Copyright (C) Dave Bettin, 2002\r
+// Copyright (C) Tim Coleman, 2002\r
 //\r
 \r
 using System.Collections;\r
 using System.IO;\r
 using System.Xml;\r
+using System.Xml.Serialization;\r
 \r
 namespace System.Web.Services.Discovery {\r
        public sealed class DiscoveryDocument {\r
@@ -31,7 +34,8 @@ namespace System.Web.Services.Discovery {
                #endregion // Constructors\r
 \r
                #region Properties\r
-               \r
+       \r
+               [XmlIgnore]\r
                public IList References {\r
                        [MonoTODO]\r
                        get { throw new NotImplementedException (); }\r
index 36b4412c3d7bf853341b3c9b29a45dec6bed529e..be6d279162c443b894a9d539da50014ef9ab2f19 100755 (executable)
@@ -3,28 +3,36 @@
 //\r
 // Author:\r
 //   Dave Bettin (javabettin@yahoo.com)\r
+//   Tim Coleman (tim@timcoleman.com)\r
 //\r
 // Copyright (C) Dave Bettin, 2002\r
+// Copyright (C) Tim Coleman, 2002\r
 //\r
 \r
 using System.IO;\r
 using System.Web.Services.Description;\r
+using System.Xml.Serialization;\r
 \r
 namespace System.Web.Services.Discovery {\r
        public sealed class DiscoveryDocumentReference : DiscoveryReference {\r
 \r
+               #region Fields\r
+\r
+               string href;\r
+\r
+               #endregion // Fields\r
+\r
                #region Constructors\r
 \r
                [MonoTODO]\r
                public DiscoveryDocumentReference () \r
                {\r
-                       throw new NotImplementedException ();\r
+                       href = String.Empty;\r
                }\r
                \r
-               [MonoTODO]\r
-               public DiscoveryDocumentReference (string href) : this() \r
+               public DiscoveryDocumentReference (string href) : this () \r
                {\r
-                       throw new NotImplementedException ();\r
+                       this.href = href;\r
                }               \r
                \r
                #endregion // Constructors\r
@@ -32,33 +40,29 @@ namespace System.Web.Services.Discovery {
                #region Properties\r
                \r
                [MonoTODO]\r
+               [XmlIgnore]\r
                public DiscoveryDocument Document {\r
                        [MonoTODO]\r
                        get { throw new NotImplementedException (); }\r
                }\r
                \r
                [MonoTODO]\r
+               [XmlIgnore]\r
                public override string DefaultFilename {\r
                        [MonoTODO]\r
                        get { throw new NotImplementedException (); }\r
                }\r
-               \r
-               [MonoTODO]\r
+       \r
+               [MonoTODO ("Set the XmlAttribute on this.")]\r
                public string Ref {\r
-                       [MonoTODO]\r
-                       get { throw new NotImplementedException (); }\r
-                       \r
-                       [MonoTODO]\r
-                       set { throw new NotImplementedException (); }\r
+                       get { return href; }\r
+                       set { href = value; }\r
                }\r
                \r
-               [MonoTODO]\r
+               [XmlIgnore]\r
                public override string Url {\r
-                       [MonoTODO]\r
-                       get { throw new NotImplementedException (); }\r
-                       \r
-                       [MonoTODO]\r
-                       set { throw new NotImplementedException (); }\r
+                       get { return Ref; }\r
+                       set { Ref = value; }\r
                }\r
                \r
                #endregion // Properties\r