2007-10-05 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Fri, 5 Oct 2007 06:52:27 +0000 (06:52 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Fri, 5 Oct 2007 06:52:27 +0000 (06:52 -0000)
* HttpWebClientProtocol.cs : implemented EnableDecompression.

* WebService.cs : [ComVisible].

* DiscoveryClientProtocol.cs : [ComVisible]

* ServiceDescriptionCollection.cs : added missing members.

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

mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionCollection.cs
mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs
mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpWebClientProtocol.cs
mcs/class/System.Web.Services/System.Web.Services/ChangeLog
mcs/class/System.Web.Services/System.Web.Services/WebService.cs

index 93f66fcf4d0dea5335505550d7af4f62aa9c0f94..44c33023c31c7a20f9e2fbd2e816ac75e8a312ca 100644 (file)
@@ -1,3 +1,7 @@
+2007-10-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * ServiceDescriptionCollection.cs : added missing members.
+
 2007-08-31  Gert Driesen  <drieseng@users.sourceforge.net>
 
        * ServiceDescription.cs: Do not require write access to file.
index c698d5f9652a4026aedf02e572484a0f8b3c5e9e..fb3f665d968a12ae29c8a9ad13a1e404b006f6f5 100644 (file)
@@ -148,6 +148,7 @@ namespace System.Web.Services.Description {
                public void Insert (int index, ServiceDescription serviceDescription)
                {
                        List.Insert (index, serviceDescription);
+                       OnInsertComplete (index, serviceDescription);
                }
        
                public void Remove (ServiceDescription serviceDescription)
@@ -155,6 +156,22 @@ namespace System.Web.Services.Description {
                        List.Remove (serviceDescription);
                }
 
+#if NET_2_0
+               [MonoTODO]
+               protected override
+#endif
+               void OnInsertComplete (int index, object item)
+               {
+                       base.OnInsertComplete (index, item);
+               }
+
+#if NET_2_0
+               [MonoTODO]
+               protected override void SetParent (object value, object parent)
+               {
+               }
+#endif
+
                #endregion // Methods
        }
 }
index 25c798591a0d7e00e012c2527c1e9cfd15dbff7e..261b66f572875c4b1ecc532ae1477c0430b71695 100644 (file)
@@ -1,3 +1,7 @@
+2007-10-05  Atsushi Enomotot  <atsushi@ximian.com>
+
+       * DiscoveryClientProtocol.cs : [ComVisible]
+
 2007-08-31  Gert Driesen  <drieseng@users.sourceforge.net>
 
        * DiscoveryRequestHandler.cs: Do not require write access to file.
index 64fa18b736a8217b7811e57ad48838bfa03847a6..31a8a24ea8501eb1c0ab336b1d866492f13e25a8 100644 (file)
@@ -229,6 +229,9 @@ namespace System.Web.Services.Discovery {
                        }
                }
 
+#if NET_2_0
+               [System.Runtime.InteropServices.ComVisible (false)]
+#endif
                [Obsolete ("This method will be removed from a future version. The method call is no longer required for resource discovery", false)]
                public void LoadExternals ()
                {
index 817eecc3d80a638a54aee763486fe22a25b2383f..6cfe61c9f43c37954edf13de4dfadf11bb74be9e 100644 (file)
@@ -1,3 +1,7 @@
+2007-10-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * HttpWebClientProtocol.cs : implemented EnableDecompression.
+
 2007-10-04  Atsushi Enomoto  <atsushi@ximian.com>
 
        * TypeStubManager.cs: reverted r82932 again. This #if ONLY_1_1 causes
index b5ac3351a65858808ae40f6bec8bc59506fc1bff..2b653064d915935f7f5a299d354c66007746f695 100644 (file)
@@ -44,7 +44,7 @@ namespace System.Web.Services.Protocols {
 
                #region Fields
 
-               bool allowAutoRedirect;
+               bool allowAutoRedirect, enableDecompression;
                X509CertificateCollection clientCertificates;
                CookieContainer cookieContainer;
                IWebProxy proxy;
@@ -95,6 +95,14 @@ namespace System.Web.Services.Protocols {
                        set { cookieContainer = value; }
                }
 
+#if NET_2_0
+               [DefaultValue (false)]
+               public bool EnableDecompression {
+                       get { return enableDecompression; }
+                       set { enableDecompression = value; }
+               }
+#endif
+
                [Browsable (false)]
                [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
                public IWebProxy Proxy {
@@ -154,6 +162,10 @@ namespace System.Web.Services.Protocols {
                        HttpWebRequest request = req as HttpWebRequest;
                        if (request == null)
                                return req;
+#if NET_2_0
+                       if (enableDecompression)
+                               request.AutomaticDecompression = DecompressionMethods.GZip;
+#endif
 
                        request.AllowAutoRedirect = allowAutoRedirect;
                        if (clientCertificates != null)
index e99fa4af45d8d4b3bee11e8cdc4a6789348ec05a..86fb84afb33f57d4c3aeb34980b24f8cf987a1d9 100644 (file)
@@ -1,3 +1,7 @@
+2006-12-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * WebService.cs : [ComVisible].
+
 2006-12-04  Atsushi Enomoto  <atsushi@ximian.com>
 
        * WebService.cs : implemented SoapVersion as documented in MSDN.
index ec84f7161f924f13f0ccb90df23fc634954c6273..50f410d91d5f010546ea280683f566db4d496421 100644 (file)
@@ -102,6 +102,7 @@ namespace System.Web.Services {
 #if NET_2_0
                [Browsable (false)]
                [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [System.Runtime.InteropServices.ComVisible (false)]
                public System.Web.Services.Protocols.SoapProtocolVersion SoapVersion {
                        get { return _soapVersion; }
                }