* MessageBinding.cs: Name property should be null by default.
authorLluis Sanchez <lluis@novell.com>
Wed, 15 Oct 2003 18:47:12 +0000 (18:47 -0000)
committerLluis Sanchez <lluis@novell.com>
Wed, 15 Oct 2003 18:47:12 +0000 (18:47 -0000)
* ProtocolImporter.cs: Take into account the previous change.

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

mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Description/MessageBinding.cs
mcs/class/System.Web.Services/System.Web.Services.Description/ProtocolImporter.cs

index 4e7eade79f04689d5cade454da6df62e6ec8d943..532ce363f4cb8b6e92a803efab91615aa981a1f2 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-15  Lluis Sanchez Gual <lluis@ximian.com>
+
+       * MessageBinding.cs: Name property should be null by default.
+       * ProtocolImporter.cs: Take into account the previous change.
+
 2003-10-15  Lluis Sanchez Gual <lluis@ximian.com>
 
        * HttpSimpleProtocolReflector.cs, ProtocolReflector.cs: 
index c8aa912b52585903753869ddeb8d7f1f8edaa9af..6a64ca745e83d61b5660e3873fbe907bc771403a 100644 (file)
@@ -24,7 +24,7 @@ namespace System.Web.Services.Description {
                \r
                protected MessageBinding ()\r
                {\r
-                       name = String.Empty;\r
+                       name = null;\r
                        operationBinding = new OperationBinding ();\r
                }\r
                \r
@@ -37,7 +37,7 @@ namespace System.Web.Services.Description {
                        get;\r
                }\r
 \r
-               [DefaultValue ("")]\r
+               [DefaultValue (null)]\r
                [XmlAttribute ("name", DataType = "NMTOKEN")]   \r
                public string Name {\r
                        get { return name; }\r
index a016cce0425ad9d47d7b5fc13b4bf051af8831d5..a96f7832f32785f00c11ea24ff43c2856dac444a 100644 (file)
@@ -251,8 +251,8 @@ namespace System.Web.Services.Description {
 
                Operation FindPortOperation ()
                {
-                       string inMessage = (operationBinding.Input.Name != "") ? operationBinding.Input.Name : operationBinding.Name;
-                       string outMessage = (operationBinding.Output.Name != "") ? operationBinding.Output.Name : operationBinding.Name;
+                       string inMessage = (operationBinding.Input.Name != null) ? operationBinding.Input.Name : operationBinding.Name;
+                       string outMessage = (operationBinding.Output.Name != null) ? operationBinding.Output.Name : operationBinding.Name;
                        string operName = operationBinding.Name;
                        
                        foreach (Operation oper in PortType.Operations)