+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
-//
-// 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
-//
-// 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
-//
-// 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