Fix problem with unknown services ("forward" compatibility)
[jabaws.git] / webservices / compbio / ws / client / Jws2Client.java
index 96343db..0aa02c5 100644 (file)
@@ -67,7 +67,7 @@ import compbio.util.FileUtil;
  */\r
 public class Jws2Client {\r
 \r
-       /*\r
+       /**\r
         * Use java.util.Logger instead of log4j logger to reduce the size of the client package\r
         */\r
        private static final Logger log = Logger.getLogger(Jws2Client.class.getCanonicalName());\r
@@ -300,11 +300,13 @@ public class Jws2Client {
                        return;\r
                }\r
                if (!func_services.isEmpty()) {\r
-                       String mess = "\n\rAvailable services: ";\r
+                       System.out.println("There are " + func_services.size() + " services at " + hostname + ":");\r
+                       String mess = "\n\rThe list:\n";\r
                        System.out.println(mess + Services.toString(func_services));\r
                }\r
                if (!nonfunc_services.isEmpty()) {\r
-                       String mess = "Non-available services (internal tests failed): ";\r
+                       System.out.println("There are " + nonfunc_services.size() + " non-available services at " + hostname + ":");\r
+                       String mess = "The list (internal tests failed): ";\r
                        System.out.println(mess + Services.toString(nonfunc_services));\r
                }\r
        }\r