* ProtocolImporter.cs: Little fix in schema classification.
authorLluis Sanchez <lluis@novell.com>
Tue, 2 Mar 2004 15:03:40 +0000 (15:03 -0000)
committerLluis Sanchez <lluis@novell.com>
Tue, 2 Mar 2004 15:03:40 +0000 (15:03 -0000)
svn path=/trunk/mcs/; revision=23617

mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Description/ProtocolImporter.cs

index 087548d7aea81ec48003e510fe778daea8cd9838..f9d514e5f927b860319b8225c09471213a989cc7 100644 (file)
@@ -1,3 +1,7 @@
+2004-03-02  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * ProtocolImporter.cs: Little fix in schema classification.
+       
 2004-02-27  Lluis Sanchez Gual  <lluis@ximian.com>
 
        * ExtensionManager.cs: Create all serializers for soap extensions at once.
index 9345cc15590e562a67322c30b1505d058ca03e69..a9acaa4615feaa1283c0dfcbc613ee5e6fe67af5 100644 (file)
@@ -388,10 +388,12 @@ namespace System.Web.Services.Description {
                        // Schemas not referenced by any message
                        foreach (XmlSchema sc in Schemas)
                        {
-                               if (ImportsEncodedNamespace (sc))
-                                       soapSchemas.Add (sc);
-                               else if (!soapSchemas.Contains (sc) && !xmlSchemas.Contains (sc))
-                                       defaultList.Add (sc);
+                               if (!soapSchemas.Contains (sc) && !xmlSchemas.Contains (sc)) {
+                                       if (ImportsEncodedNamespace (sc))
+                                               soapSchemas.Add (sc);
+                                       else
+                                               defaultList.Add (sc);
+                               }
                        }
                }