2008-07-01 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Tue, 1 Jul 2008 20:09:33 +0000 (20:09 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Tue, 1 Jul 2008 20:09:33 +0000 (20:09 -0000)
* ServiceDescription.cs : fill RetrievalUrl by string.Empty
  by default.

* ServiceDescriptionTest.cs : check RetrievalUrl before/after Read().
  Sadly it does not provide the actual URL...

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

mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs
mcs/class/System.Web.Services/Test/System.Web.Services.Description/ChangeLog
mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs

index 483e36fa0f0415eecd33656370a2f4ff620cbedb..41fd9c77a874b4abef6fc1d7be7e0616e324ad06 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-01  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * ServiceDescription.cs : fill RetrievalUrl by string.Empty
+         by default.
+
 2008-07-01  Atsushi Enomoto  <atsushi@ximian.com>
 
        * ProtocolImporter.cs, HttpSimpleProtocolImporter.cs,
index 2c9828ab6ce455ccfdc31e5369c0e1f826ad58c6..fb0aab54ef41115b042e8f70d160754b9aac6b79 100644 (file)
@@ -66,7 +66,7 @@ namespace System.Web.Services.Description
                string name;
 #endif
                PortTypeCollection portTypes;
-               string retrievalUrl;
+               string retrievalUrl = String.Empty;
                ServiceDescriptionCollection serviceDescriptions;
                ServiceCollection services;
                string targetNamespace;
index 4c490b34149da5b90959ff430f6ef20db2b99b31..33e20ce6d5a67581ddf7d7586634f99a5e2343c1 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-01  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * ServiceDescriptionTest.cs : check RetrievalUrl before/after Read().
+         Sadly it does not provide the actual URL...
+
 2008-07-01  Atsushi Enomoto  <atsushi@ximian.com>
 
        * test3.wsdl: added missing file (though the test is ignored).
index dcb390c3f36d3a11dd91ecd63533ed9da7c956ed..7ebfc51c1d91ef22deeea8680260905d669ff40b 100644 (file)
@@ -47,6 +47,14 @@ namespace MonoTests.System.Web.Services.Description
                        Assert.IsNull (sd.TargetNamespace);
                }
 
+               [Test]
+               public void ReadAndRetrievalUrl ()
+               {
+                       Assert.AreEqual (String.Empty, new ServiceDescription ().RetrievalUrl, "#1");
+                       ServiceDescription sd = ServiceDescription.Read ("Test/System.Web.Services.Description/test2.wsdl");
+                       Assert.AreEqual (String.Empty, sd.RetrievalUrl, "#2");
+               }
+
 #if NET_2_0
                [Test]
                public void Namespaces ()