2006-11-30 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Thu, 30 Nov 2006 06:59:32 +0000 (06:59 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Thu, 30 Nov 2006 06:59:32 +0000 (06:59 -0000)
* SoapHttpClientProtocol.cs : looks like (only) the last Text is used
  instead of the first one in .net.

svn path=/branches/atsushi/mcs/; revision=68733

mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs

index eac15c3385e4f08eb64113fe1a8f528cfdacb8f8..5c6683b151daa2abbb6b3d4263379ba7b56d1d28 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-30  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SoapHttpClientProtocol.cs : looks like (only) the last Text is used
+         instead of the first one in .net.
+
 2006-11-28  Atsushi Enomoto  <atsushi@ximian.com>
 
        * Fault12.cs : they should be all internal.
index 8602824363c337e00b399c75fc0bf0a7a6c0a7c1..5f5587db089bbb102611ac845e04eaf4ebbb2692 100644 (file)
@@ -299,7 +299,7 @@ namespace System.Web.Services.Protocols
                                        fault.Reason != null &&
                                        fault.Reason.Texts != null &&
                                        fault.Reason.Texts.Length > 0 ?
-                                       fault.Reason.Texts [0] : null;
+                                       fault.Reason.Texts [fault.Reason.Texts.Length - 1] : null;
                                XmlNode detail = (fault.Detail == null) ? null :
                                        (fault.Detail.Children != null &&
                                        fault.Detail.Children.Length > 0) ?