Merge pull request #2942 from jogibear9988/patch-2
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Protocols / HttpGetTypeStubInfo.cs
index 8a411b44f71e65b120e66068657968cdd2da14a8..2314de5eeccfe0a6a2d0422caf7eb2796fd4540c 100644 (file)
@@ -54,7 +54,7 @@ namespace System.Web.Services.Protocols
                
                protected override MethodStubInfo CreateMethodStubInfo (TypeStubInfo typeInfo, LogicalMethodInfo methodInfo, bool isClientProxy)
                {
-                       if (isClientProxy && methodInfo.MethodInfo.GetCustomAttributes (typeof(HttpMethodAttribute),true).Length == 0) return null;
+                       if (isClientProxy && methodInfo.ActualMethodInfo.GetCustomAttributes (typeof(HttpMethodAttribute),true).Length == 0) return null;
                        if (!ValueCollectionParameterReader.IsSupported (methodInfo)) return null;
                        return new HttpGetMethodStubInfo (typeInfo, methodInfo);
                }