Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-19656

Error in the SOAP Client code for documentation of Jax-WS

    XMLWordPrintable

Details

    • Documentation
    • Resolution: Unresolved
    • Critical
    • None
    • 7.2.0.GA
    • Documentation, Web Services
    • 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]));

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-yvedpath Yogesh Vedpathak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: