Details

    • Type: Documentation
    • Status: New (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 7.2.0.GA
    • Fix Version/s: None
    • Component/s: Web Services
    • Labels:
      None
    • Target Release:
    • Affects:
      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]));

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jim.ma Jim Ma
                Reporter:
                yogesh.vedpathak Yogesh Vedpathak
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: