Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-4324

Fixing code of jax-ws client

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jbossws-cxf-6.3.0.Final
    • jbossws-cxf-6.1.0.Final
    • None
    • None

      In the documentation of JBoss WebServices  below code is having a syntactical error. 

       

      i

      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)); } }
       
      

       

      Here the args0 needs to be specified in square brackets as it is expecting command line arguments. 

       

       

       

       

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

              Created:
              Updated:
              Resolved: