Author: gert
Date: 2007-11-01 08:40:59 -0500 (Thu, 01 Nov 2007)
New Revision: 88644

Modified:
   trunk/mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog
   
trunk/mcs/class/System.Web.Services/System.Web.Services.Description/SoapProtocolImporter.cs
Log:
 * SoapProtocolImporter.cs: Only output Required argument for
SoapHeaderAttribute on .NET 1.0, since it is not used in .NET 1.1 and
higher. Avoids numerous warnings when compiling generated code.


Modified: 
trunk/mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog
===================================================================
--- 
trunk/mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog   
    2007-11-01 13:33:10 UTC (rev 88643)
+++ 
trunk/mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog   
    2007-11-01 13:40:59 UTC (rev 88644)
@@ -1,3 +1,9 @@
+2007-11-01  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * SoapProtocolImporter.cs: Only output Required argument for
+       SoapHeaderAttribute on .NET 1.0, since it is not used in .NET 1.1 and
+       higher. Avoids numerous warnings when compiling generated code.
+
 2007-10-05  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * ServiceDescriptionCollection.cs : added missing members.

Modified: 
trunk/mcs/class/System.Web.Services/System.Web.Services.Description/SoapProtocolImporter.cs
===================================================================
--- 
trunk/mcs/class/System.Web.Services/System.Web.Services.Description/SoapProtocolImporter.cs
 2007-11-01 13:33:10 UTC (rev 88643)
+++ 
trunk/mcs/class/System.Web.Services/System.Web.Services.Description/SoapProtocolImporter.cs
 2007-11-01 13:40:59 UTC (rev 88644)
@@ -638,8 +638,6 @@
                                soapExporter.ExportTypeMapping (map);
                        }
 
-                       bool required = false;
-
                        string varName = headerVariables [map] as string;
                        if (varName == null) 
                        {
@@ -652,7 +650,9 @@
                        
                        CodeAttributeDeclaration att = new 
CodeAttributeDeclaration ("System.Web.Services.Protocols.SoapHeaderAttribute");
                        att.Arguments.Add (GetArg (varName));
-                       att.Arguments.Add (GetArg ("Required", required));
+#if ONLY_1_0
+                       att.Arguments.Add (GetArg ("Required", false));
+#endif
                        if (direction != SoapHeaderDirection.In) 
att.Arguments.Add (GetEnumArg ("Direction", 
"System.Web.Services.Protocols.SoapHeaderDirection", direction.ToString ()));
                        AddCustomAttribute (method, att, true);
                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to