public class Jws2Client {\r
\r
/*\r
- * TODO Use java.util.Logger instead of log4j logger to reduce the size of\r
- * the client package\r
+ * Use java.util.Logger instead of log4j logger to reduce the size of the\r
+ * client package\r
*/\r
private static final Logger log = Logger.getLogger(Jws2Client.class\r
.getCanonicalName());\r
\r
String hostname = CmdHelper.getHost(cmd);\r
if (hostname == null) {\r
- System.out.println("Host name is not provided!");\r
+ System.err.println("Host name is not provided!");\r
printUsage(1);\r
}\r
\r
if (!validURL(hostname)) {\r
- System.out.println("Host name is not valid!");\r
+ System.err.println("Host name is not valid!");\r
printUsage(1);\r
}\r
String serviceName = CmdHelper.getServiceName(cmd);\r
if (serviceName == null) {\r
- System.out.println("Service name is no provided!");\r
+ System.err.println("Service name is no provided!");\r
printUsage(1);\r
}\r
Services service = Services.getService(serviceName);\r
if (service == null) {\r
- System.out.println("Service " + serviceName\r
+ System.err.println("Service " + serviceName\r
+ " is no supported! Valid values are: "\r
+ Arrays.toString(Services.values()));\r
printUsage(1);\r
printUsage(1);\r
}\r
if (args.length < 2) {\r
- System.out.println("Host and service names are required!");\r
+ System.err.println("Host and service names are required!");\r
printUsage(1);\r
}\r
\r