Author: atsushi
Date: 2007-05-11 01:36:50 -0400 (Fri, 11 May 2007)
New Revision: 77194
Modified:
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerType.cs
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Protocols/ChangeLog
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Protocols/SoapServerTypeTest.cs
Log:
2007-05-11 Atsushi Enomoto <[EMAIL PROTECTED]>
* SoapServerType.cs : avoid IndexOutOfRange on reflecting
SoapRpcAttribute.
* SoapServerTypeTest.cs : make sure that SoapRpcServiceAttribute works.
Modified:
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
2007-05-11 04:58:47 UTC (rev 77193)
+++ trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
2007-05-11 05:36:50 UTC (rev 77194)
@@ -1,3 +1,8 @@
+2007-05-11 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * SoapServerType.cs : avoid IndexOutOfRange on reflecting
+ SoapRpcAttribute.
+
2007-05-08 Atsushi Enomoto <[EMAIL PROTECTED]>
* SoapServerMethod.cs : Some refactoring. simply use GetMethod() in
Modified:
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerType.cs
===================================================================
---
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerType.cs
2007-05-11 04:58:47 UTC (rev 77193)
+++
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerType.cs
2007-05-11 05:36:50 UTC (rev 77194)
@@ -104,6 +104,7 @@
routingStyle = at.RoutingStyle;
}
else if (t.GetCustomAttributes
(typeof(SoapRpcServiceAttribute), true).Length > 0) {
+ o = t.GetCustomAttributes
(typeof(SoapRpcServiceAttribute), true);
SoapRpcServiceAttribute at =
(SoapRpcServiceAttribute) o[0];
#if NET_2_0
bindingUse = at.Use;
Modified:
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Protocols/ChangeLog
===================================================================
---
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Protocols/ChangeLog
2007-05-11 04:58:47 UTC (rev 77193)
+++
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Protocols/ChangeLog
2007-05-11 05:36:50 UTC (rev 77194)
@@ -1,3 +1,7 @@
+2007-05-11 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * SoapServerTypeTest.cs : make sure that SoapRpcServiceAttribute works.
+
2007-05-08 Atsushi Enomoto <[EMAIL PROTECTED]>
* SoapServerTypeTest.cs : added some more tests related to server
Modified:
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Protocols/SoapServerTypeTest.cs
===================================================================
---
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Protocols/SoapServerTypeTest.cs
2007-05-11 04:58:47 UTC (rev 77193)
+++
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Protocols/SoapServerTypeTest.cs
2007-05-11 05:36:50 UTC (rev 77194)
@@ -114,6 +114,22 @@
new SoapServerType (typeof (WrongBindingNameClass),
WebServiceProtocols.HttpSoap);
}
+ [Test]
+ public void SimpleRpcType ()
+ {
+ new SoapServerType (typeof (SimpleRpcService),
WebServiceProtocols.HttpSoap);
+ }
+
+ [WebService]
+ [SoapRpcService]
+ public class SimpleRpcService : WebService
+ {
+ [WebMethod]
+ public void Hello ()
+ {
+ }
+ }
+
// bug #78953
[WebServiceAttribute (Namespace = "www.DefaultNamespace.org")]
[WebServiceBindingAttribute (Name = "Local", Namespace =
"urn:localBinding:local")]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches