2003-05-28 Jean-Marc Andre <jean-marc.andre@polymtl.ca>
authorJean-Marc Andre <jeanmarc@mono-cvs.ximian.com>
Wed, 28 May 2003 15:45:18 +0000 (15:45 -0000)
committerJean-Marc Andre <jeanmarc@mono-cvs.ximian.com>
Wed, 28 May 2003 15:45:18 +0000 (15:45 -0000)
ServeurFault.cs:  finishing implementation
SoapFault.cs:  finishing implementation
SoapMessage.cs:  finishing implementation

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

mcs/class/corlib/System.Runtime.Serialization.Formatters/ChangeLog
mcs/class/corlib/System.Runtime.Serialization.Formatters/ServerFault.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters/SoapFault.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters/SoapMessage.cs

index 8354cf9555b4dd41429cedbdddad47ee06020861..f5beb450d4a5de0114fc906e7f03b9de4e804149 100644 (file)
@@ -1,3 +1,9 @@
+2003-05-28  Jean-Marc Andre <jean-marc.andre@polymtl.ca>
+
+       * SoapFault.cs: finishing implementation
+       * ServerFault.cs: finishing implementation
+       * SoapMessage.cs: finishing implementation
+
 2002-08-22  Nick Drochak  <ndrochak@gol.com>
 
        * SoapFault.cs: Serialization ctr should be private
index 3da1932cd78d9a0e975ea8bd4e9d9789ff2f3200..e72af6ff059c70d1be27b18ee2ab7d2e395044bc 100644 (file)
@@ -1,45 +1,46 @@
-//
-// System.Runtime.Serialization.Formatters.ServerFault.cs
-//
-// Author: Duncan Mak  (duncan@ximian.com)
-//
-// 2002 (C) Copyright, Ximian, Inc.
-//
-
-using System;
-using System.Runtime.Serialization;
-
-namespace System.Runtime.Serialization.Formatters {
-
-       [Serializable]
-       public sealed class ServerFault
-       {
-               string ex_type;
-               string ex_message;
-               string stacktrace;
-               ServerFault serverFault;
-
-               public ServerFault (string exceptionType, string message,
-                                 string stackTrace)
-               {
-                       ex_type = exceptionType;
-                       ex_message = message;
-                       stacktrace = stackTrace;
-               }
-
-               public string ExceptionType {
-                       get { return ex_type; }
-                       set { ex_type = value; }
-               }
-
-               public string ExceptionMessage {
-                       get { return ex_message; }
-                       set { ex_message = value; }
-               }
-
-               public string StackTrace {
-                       get { return stacktrace; }
-                       set { stacktrace = value; }
-               }
-       }
-}
+//\r
+// System.Runtime.Serialization.Formatters.ServerFault.cs\r
+//\r
+// Author: Duncan Mak  (duncan@ximian.com)\r
+//        Jean-Marc Andre (jean-marc.andre@polymtl.ca)\r
+//\r
+// 2002 (C) Copyright, Ximian, Inc.\r
+//\r
+\r
+using System;\r
+using System.Runtime.Serialization;\r
+\r
+namespace System.Runtime.Serialization.Formatters {\r
+\r
+       [Serializable]\r
+       public sealed class ServerFault\r
+       {\r
+               string exceptionType;\r
+               string message;\r
+               string stackTrace;\r
+               Exception exception;\r
+\r
+               public ServerFault (string exceptionType, string message,\r
+                                 string stackTrace)\r
+               {\r
+                       this.exceptionType = exceptionType;\r
+                       this.message = message;\r
+                       this.stackTrace = stackTrace;\r
+               }\r
+\r
+               public string ExceptionType {\r
+                       get { return exceptionType; }\r
+                       set { exceptionType = value; }\r
+               }\r
+\r
+               public string ExceptionMessage {\r
+                       get { return message; }\r
+                       set { message = value; }\r
+               }\r
+\r
+               public string StackTrace {\r
+                       get { return stackTrace; }\r
+                       set { stackTrace = value; }\r
+               }\r
+       }\r
+}\r
index 709d5e99efa30da625acdb3bb2ff4fdadb7d9284..3fd79287401edcd736b4a9f8ff1bfa0c9b4e0c5e 100644 (file)
@@ -1,73 +1,73 @@
-//
-// System.Runtime.Serialization.Formatters.SoapFault.cs
-//
-// Author: Duncan Mak  (duncan@ximian.com)
-//
-// 2002 (C) Copyright, Ximian, Inc.
-//
-
-using System;
-using System.Runtime.Serialization;
-
-namespace System.Runtime.Serialization.Formatters {
-
-       [Serializable]
-       public sealed class SoapFault : ISerializable
-       {
-               string code;
-               string actor;
-               string faultString;
-               ServerFault serverFault;
-
-               [MonoTODO]
-               public SoapFault ()
-               {
-                       throw new NotImplementedException ();
-               }
-
-               private SoapFault (SerializationInfo info, StreamingContext context)
-               {
-                       FaultCode = info.GetString ("faultcode");
-                       FaultString = info.GetString ("faultstring");
-                       Detail = info.GetValue ("detail", typeof (object));
-               }
-
-               public SoapFault (string faultCode, string faultString,
-                                 string faultActor, ServerFault serverFault)
-               {
-                       this.code = faultCode;
-                       this.actor = faultActor;
-                       this.faultString = faultString;
-                       this.serverFault = serverFault;
-               }
-               
-               [MonoTODO]
-               public object Detail {
-                       get { throw new NotImplementedException (); }
-                       set { throw new NotImplementedException (); }
-               }
-
-               public string FaultActor {
-                       get { return actor; }
-                       set { actor = value; }
-               }
-
-               public string FaultCode {
-                       get { return code; }
-                       set { code = value; }
-               }
-
-               public string FaultString {
-                       get { return faultString; }
-                       set { faultString = value; }
-               }
-               
-               public void GetObjectData (SerializationInfo info,
-                                          StreamingContext context)
-               {
-                       info.AddValue ("faultcode", FaultCode, typeof (string));
-                       info.AddValue ("faultstring", FaultString, typeof (string));
-                       info.AddValue ("detail", Detail, typeof (object));
-               }
-       }
-}
+//\r
+// System.Runtime.Serialization.Formatters.SoapFault.cs\r
+//\r
+// Author: Duncan Mak  (duncan@ximian.com)\r
+//         Jean-Marc Andre (jean-marc.andre@polymtl.ca)\r
+//\r
+// 2002 (C) Copyright, Ximian, Inc.\r
+//\r
+\r
+using System;\r
+using System.Runtime.Serialization;\r
+\r
+namespace System.Runtime.Serialization.Formatters {\r
+\r
+       [Serializable]\r
+       public sealed class SoapFault : ISerializable\r
+       {\r
+               string code;\r
+               string actor;\r
+               string faultString;\r
+               object detail;\r
+\r
+               public SoapFault ()\r
+               {\r
+\r
+               }\r
+\r
+               private SoapFault (SerializationInfo info, StreamingContext context)\r
+               {\r
+                       code = info.GetString ("faultcode");\r
+                       faultString = info.GetString ("faultstring");\r
+                       detail = info.GetValue ("detail", typeof (object));\r
+               }\r
+\r
+               public SoapFault (string faultCode, string faultString,\r
+                                 string faultActor, ServerFault serverFault)\r
+               {\r
+                       this.code = faultCode;\r
+                       this.actor = faultActor;\r
+                       this.faultString = faultString;\r
+                       this.detail = serverFault;\r
+               }\r
+               \r
+\r
+               public object Detail {\r
+                       get { return detail; }\r
+                       set { detail = value; }\r
+               }\r
+\r
+               public string FaultActor {\r
+                       get { return actor; }\r
+                       set { actor = value; }\r
+               }\r
+\r
+               public string FaultCode {\r
+                       get { return code; }\r
+                       set { code = value; }\r
+               }\r
+\r
+               public string FaultString {\r
+                       get { return faultString; }\r
+                       set { faultString = value; }\r
+               }\r
+               \r
+               public void GetObjectData (SerializationInfo info,\r
+                                          StreamingContext context)\r
+               {\r
+                       info.AddValue ("faultcode", code, typeof (string));\r
+                       info.AddValue ("faultstring", faultString, typeof (string));\r
+                       info.AddValue ("detail", detail, typeof (object));\r
+               }\r
+       }\r
+}\r
index 286b0644eef3f8bd865d78af1d27bcde5b23b532..4745d6cb1d62694acc4d0d39893ac0bed7a7c702 100644 (file)
@@ -1,59 +1,60 @@
-//
-// System.Runtime.Serialization.Formatters.SoapMessage.cs
-//
-// Author: Duncan Mak  (duncan@ximian.com)
-//
-// 2002 (C) Copyright, Ximian, Inc.
-//
-
-using System;
-using System.Runtime.Remoting.Messaging;
-using System.Runtime.Serialization.Formatters;
-
-namespace System.Runtime.Serialization.Formatters {
-
-       [Serializable]
-       public class SoapMessage : ISoapMessage
-       {
-               [MonoTODO]
-               public SoapMessage ()
-               {
-                       throw new NotImplementedException ();
-               }
-
-               public Header[] Headers {
-                       get { throw new NotImplementedException (); }
-                       set { throw new NotImplementedException (); }
-               }
-
-               [MonoTODO]
-               public string MethodName {
-                       get { throw new NotImplementedException (); }
-                       set { throw new NotImplementedException (); }
-               }
-
-               [MonoTODO]
-               public string [] ParamNames {
-                       get { throw new NotImplementedException (); }
-                       set { throw new NotImplementedException (); }
-               }
-
-               [MonoTODO]
-               public Type [] ParamTypes {
-                       get { throw new NotImplementedException (); }
-                       set { throw new NotImplementedException (); }
-               }
-
-               [MonoTODO]
-               public object [] ParamValues {
-                       get { throw new NotImplementedException (); }
-                       set { throw new NotImplementedException (); }
-               }
-
-               [MonoTODO]
-               public string XmlNameSpace {
-                       get { throw new NotImplementedException (); }
-                       set { throw new NotImplementedException (); }
-               }
-       }
-}
+//\r
+// System.Runtime.Serialization.Formatters.SoapMessage.cs\r
+//\r
+// Author: Duncan Mak  (duncan@ximian.com)\r
+//        Jean-Marc Andre (jean-marc.andre@polymtl.ca) \r
+//\r
+// 2002 (C) Copyright, Ximian, Inc.\r
+//\r
+\r
+using System;\r
+using System.Runtime.Remoting.Messaging;\r
+using System.Runtime.Serialization.Formatters;\r
+\r
+namespace System.Runtime.Serialization.Formatters {\r
+\r
+       [Serializable]\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
+               \r
+               public SoapMessage ()\r
+               {\r
+               }\r
+\r
+               public Header[] Headers {\r
+                       get { return _headers; }\r
+                       set { _headers = value; }\r
+               }\r
+\r
+               public string MethodName {\r
+                       get { return _methodName; }\r
+                       set { _methodName = value; }\r
+               }\r
+\r
+               public string [] ParamNames {\r
+                       get { return _paramNames; }\r
+                       set { _paramNames = value; }\r
+               }\r
+\r
+               public Type [] ParamTypes {\r
+                       get { return _paramTypes; }\r
+                       set { _paramTypes = value; }\r
+               }\r
+\r
+               public object [] ParamValues {\r
+                       get { return _paramValues; }\r
+                       set { _paramValues = value; }\r
+               }\r
+\r
+               public string XmlNameSpace {\r
+                       get { return _xmlNameSpace; }\r
+                       set { _xmlNameSpace = value; }\r
+               }\r
+       }\r
+}\r