* ProtocolImporter.cs: issue a warning if no services have been found.
authorLluis Sanchez <lluis@novell.com>
Mon, 24 May 2004 10:42:05 +0000 (10:42 -0000)
committerLluis Sanchez <lluis@novell.com>
Mon, 24 May 2004 10:42:05 +0000 (10:42 -0000)
svn path=/trunk/mcs/; revision=27957

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

index 1eea725568f1d47b569279c15dea6108c1317a52..3532677a6e360cd63b14d41fd7e2683bcc54a8a4 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-24  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * ProtocolImporter.cs: issue a warning if no services have been found.
+
 2004-03-02  Lluis Sanchez Gual  <lluis@ximian.com>
 
        * SoapBinding.cs: Added missing attributes. The class is not sealed.
index a9acaa4615feaa1283c0dfcbc613ee5e6fe67af5..892bc1f42651730a740d7c32db44015cb90c7d83 100644 (file)
@@ -164,7 +164,7 @@ namespace System.Web.Services.Description {
                        this.classNames = new CodeIdentifiers();;
                        this.codeNamespace = codeNamespace;
                        this.codeCompileUnit = codeCompileUnit;
-                       
+
                        warnings = (ServiceDescriptionImportWarnings) 0;
                        
                        bool found = false;
@@ -200,6 +200,7 @@ namespace System.Web.Services.Description {
 
                        EndNamespace ();
                        
+                       if (!found) warnings = ServiceDescriptionImportWarnings.NoCodeGenerated;
                        return true;
                }