Details
-
Documentation
-
Resolution: Unresolved
-
Critical
-
None
-
7.2.0.GA
-
None
-
Documentation (Ref Guide, User Guide, etc.)
Description
Documentation of JBoss EAP 7.2.0.
Developing Web Services Applications
Chapter 3.1.2 - Client-side Development Strategies
The Client code is
import echo.*;
public class EchoClient {
public static void main(String args[]) {
if (args.length != 1)
{ System.err.println("usage: EchoClient <message>"); System.exit(1); } EchoService service = new EchoService();
Echo echo = service.getEchoPort();
System.out.println("Server said: " + echo.echo(args0));
}
}
This code does not gets compiled because of "args0" in the System.out.println. as it is missing square brackets.
It must be
System.out.println("Server said: " + echo.echo(args[0]));