2007-11-14 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / corlib / System.Runtime.Serialization.Formatters / SoapMessage.cs
index 4745d6cb1d62694acc4d0d39893ac0bed7a7c702..8e8ce4afe1910bb955d12a37a2fa515231b53b48 100644 (file)
@@ -7,54 +7,84 @@
 // 2002 (C) Copyright, Ximian, Inc.\r
 //\r
 \r
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
+\r
 using System;\r
 using System.Runtime.Remoting.Messaging;\r
 using System.Runtime.Serialization.Formatters;\r
 \r
+#if NET_2_0\r
+using System.Runtime.InteropServices;\r
+#endif\r
+\r
 namespace System.Runtime.Serialization.Formatters {\r
 \r
        [Serializable]\r
+#if NET_2_0\r
+       [ComVisible (true)]\r
+#endif\r
        public class SoapMessage : ISoapMessage\r
        {\r
-               private Header[] _headers;\r
-               private string _methodName;\r
-               private string[] _paramNames;\r
-               private Type[] _paramTypes;\r
-               private object[] _paramValues;\r
-               private string _xmlNameSpace;\r
+               private Header[] headers;\r
+               private string methodName;\r
+               private string[] paramNames;\r
+               private Type[] paramTypes;\r
+               private object[] paramValues;\r
+               private string xmlNameSpace;\r
                \r
                public SoapMessage ()\r
                {\r
                }\r
 \r
                public Header[] Headers {\r
-                       get { return _headers; }\r
-                       set { _headers = value; }\r
+                       get { return headers; }\r
+                       set { headers = value; }\r
                }\r
 \r
                public string MethodName {\r
-                       get { return _methodName; }\r
-                       set { _methodName = value; }\r
+                       get { return methodName; }\r
+                       set { methodName = value; }\r
                }\r
 \r
                public string [] ParamNames {\r
-                       get { return _paramNames; }\r
-                       set { _paramNames = value; }\r
+                       get { return paramNames; }\r
+                       set { paramNames = value; }\r
                }\r
 \r
                public Type [] ParamTypes {\r
-                       get { return _paramTypes; }\r
-                       set { _paramTypes = value; }\r
+                       get { return paramTypes; }\r
+                       set { paramTypes = value; }\r
                }\r
 \r
                public object [] ParamValues {\r
-                       get { return _paramValues; }\r
-                       set { _paramValues = value; }\r
+                       get { return paramValues; }\r
+                       set { paramValues = value; }\r
                }\r
 \r
                public string XmlNameSpace {\r
-                       get { return _xmlNameSpace; }\r
-                       set { _xmlNameSpace = value; }\r
+                       get { return xmlNameSpace; }\r
+                       set { xmlNameSpace = value; }\r
                }\r
        }\r
 }\r