Best regards mono:: team!
cesar
Index: SoapFault.cs
===================================================================
RCS file: /mono/mcs/class/corlib/System.Runtime.Serialization.Formatters/SoapFault.cs,v
retrieving revision 1.1
diff -u -r1.1 SoapFault.cs
--- SoapFault.cs 29 Jul 2002 17:26:42 -0000 1.1
+++ SoapFault.cs 14 Aug 2002 05:18:10 -0000
@@ -25,6 +25,13 @@
throw new NotImplementedException ();
}
+ public 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)
{
@@ -58,7 +65,9 @@
public void GetObjectData (SerializationInfo info,
StreamingContext context)
{
- throw new NotImplementedException ();
+ info.AddValue ("faultcode", FaultCode, typeof (string));
+ info.AddValue ("faultstring", FaultString, typeof (string));
+ info.AddValue ("detail", Detail, typeof (object));
}
}
}
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault id="ref-1">
<faultcode id="ref-2">SOAP-ENV:</faultcode>
<faultstring xsi:type="xsd:anyType" xsi:null="1"/>
<detail xsi:type="xsd:anyType" xsi:null="1"/>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>