Author: atsushi
Date: 2007-10-10 04:24:53 -0400 (Wed, 10 Oct 2007)
New Revision: 87245
Modified:
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/Methods.cs
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ChangeLog
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionReflectorTest.cs
Log:
2007-10-10 Atsushi Enomoto <[EMAIL PROTECTED]>
* Methods.cs : (SoapMethodStubInfo) reverted r74747 which caused
bug #332150.
* ServiceDescriptionReflectorTest.cs : added test for bug #332150.
Modified:
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
2007-10-10 08:02:32 UTC (rev 87244)
+++ trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
2007-10-10 08:24:53 UTC (rev 87245)
@@ -1,3 +1,8 @@
+2007-10-10 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * Methods.cs : (SoapMethodStubInfo) reverted r74747 which caused
+ bug #332150.
+
2007-10-05 Atsushi Enomoto <[EMAIL PROTECTED]>
* HttpWebClientProtocol.cs : implemented EnableDecompression.
Modified:
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/Methods.cs
===================================================================
---
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/Methods.cs
2007-10-10 08:02:32 UTC (rev 87244)
+++
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/Methods.cs
2007-10-10 08:24:53 UTC (rev 87245)
@@ -124,10 +124,11 @@
ParameterStyle = parent.ParameterStyle;
SoapBindingStyle = parent.SoapBindingStyle;
OneWay = false;
-#if NET_2_0
- if (parent.Type != source.DeclaringType)
- Binding = source.DeclaringType.Name +
parent.ProtocolName;
-#endif
+// disabled (see bug #332150)
+//#if NET_2_0
+// if (parent.Type != source.DeclaringType)
+// Binding = source.DeclaringType.Name +
parent.ProtocolName;
+//#endif
}
else if (kind is SoapDocumentMethodAttribute){
SoapDocumentMethodAttribute dma =
(SoapDocumentMethodAttribute) kind;
Modified:
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ChangeLog
===================================================================
---
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ChangeLog
2007-10-10 08:02:32 UTC (rev 87244)
+++
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ChangeLog
2007-10-10 08:24:53 UTC (rev 87245)
@@ -1,3 +1,7 @@
+2007-10-10 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * ServiceDescriptionReflectorTest.cs : added test for bug #332150.
+
2007-05-11 Atsushi Enomoto <[EMAIL PROTECTED]>
* ServiceDescriptionImporterTest.cs : added ignored test for #81457.
Modified:
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionReflectorTest.cs
===================================================================
---
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionReflectorTest.cs
2007-10-10 08:02:32 UTC (rev 87244)
+++
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionReflectorTest.cs
2007-10-10 08:24:53 UTC (rev 87245)
@@ -250,6 +250,19 @@
ServiceDescription.Read (new StringReader (sw.ToString
()));
}
+#if NET_2_0
+ [Test]
+ public void Bug332150 ()
+ {
+ ServiceDescriptionReflector r =
+ new ServiceDescriptionReflector ();
+ r.Reflect (typeof (Bug332150Service), "urn:foo");
+ StringWriter sw = new StringWriter ();
+ r.ServiceDescriptions [0].Write (sw);
+ ServiceDescription.Read (new StringReader (sw.ToString
()));
+ }
+#endif
+
public class IncludeTestServices : WebService
{
[WebMethod ()]
@@ -360,5 +373,37 @@
return arr;
}
}
+
+#if NET_2_0
+ [WebService (Namespace = "http://tempuri.org/")]
+ [WebServiceBinding (ConformsTo = WsiProfiles.BasicProfile1_1)]
+ public abstract class Bug332150SecureWebService : WebService
+ {
+ public Bug332150SecureWebService ()
+ {
+ }
+
+ [WebMethod]
+ public bool Login (string userName, string password)
+ {
+ return true;
+ }
+ }
+
+ [WebService (Namespace = "http://tempuri.org/")]
+ [WebServiceBinding (ConformsTo = WsiProfiles.BasicProfile1_1)]
+ public class Bug332150Service : Bug332150SecureWebService
+ {
+ public Bug332150Service ()
+ {
+ }
+
+ [WebMethod]
+ public string HelloWorld ()
+ {
+ return "Hello World";
+ }
+ }
+#endif
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches