Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 64878 invoked from network); 10 Jan 2006 02:57:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jan 2006 02:57:15 -0000 Received: (qmail 47621 invoked by uid 500); 10 Jan 2006 02:57:14 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 47386 invoked by uid 500); 10 Jan 2006 02:57:13 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 47375 invoked by uid 500); 10 Jan 2006 02:57:13 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 47372 invoked by uid 99); 10 Jan 2006 02:57:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2006 18:57:13 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 09 Jan 2006 18:57:12 -0800 Received: (qmail 64706 invoked by uid 65534); 10 Jan 2006 02:56:52 -0000 Message-ID: <20060110025652.64704.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r367469 - /webservices/axis2/trunk/java/xdocs/0_94/CodegenToolReference.html Date: Tue, 10 Jan 2006 02:56:51 -0000 To: axis2-cvs@ws.apache.org From: ajith@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: ajith Date: Mon Jan 9 18:56:47 2006 New Revision: 367469 URL: http://svn.apache.org/viewcvs?rev=367469&view=rev Log: Updated the codegen reference to reflect the latest changes in the code generation engine. Modified: webservices/axis2/trunk/java/xdocs/0_94/CodegenToolReference.html Modified: webservices/axis2/trunk/java/xdocs/0_94/CodegenToolReference.html URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/xdocs/0_94/CodegenToolReference.html?rev=367469&r1=367468&r2=367469&view=diff ============================================================================== --- webservices/axis2/trunk/java/xdocs/0_94/CodegenToolReference.html (original) +++ webservices/axis2/trunk/java/xdocs/0_94/CodegenToolReference.html Mon Jan 9 18:56:47 2006 @@ -23,19 +23,30 @@ style="border-collapse: collapse" width="100%" id="AutoNumber1"> - -uri <Location of WSDL> - WSDL file location. This should point to a WSDL file in + Short Option + Long Option + Description + + + + -uri <Location of WSDL> + None + WSDL file location. This should point to a WSDL file in the local file system + - -o <output Location> : - output file location. This is where the files would be + -o <output Location> : + --output + output file location. This is where the files would be copied once the code generation is done. If this option is omitted the generated files would be copied to the working directory. + - -l <language> - Output language. Currently the code generator can + -l <language> + --language + Output language. Currently the code generator can generate code in Java and CSharp. (CSharp support is experimental) When omitted defaults to Java. @@ -45,59 +56,91 @@
  • cs
  • + - -p <package name> - The target package name. If omitted, a default package - (formed using the target  namespace of the WSDL) will be used. + -p <package name> + --package + The target package name. If omitted, a default package + (formed using the target  namespace of the WSDL) will be + used. + - -a - Generate code only for async style . when this option + -a + --async + Generate code only for async style . when this option is used the generated stubs will have only the asynchronous invocation methods. Switched off by default. + - -s - Generate code only for sync style . When this option is + -s + --sync + Generate code only for sync style . When this option is used the generated stubs will have only the synchronous invocation methods. Switched off by default. When used with the -a option, this takes precedence. + - -t - Generates a test case. In the case of Java it would be - a junit test case. + -t + --test-case + Generates a test case. In the case of Java it would be + a junit test case. + - -ss - Generates server side code (i.e. skeletons). Default is + -ss + --server-side + Generates server side code (i.e. skeletons). Default is off + - -sd - Generates the service descriptor (i.e. server.xml). + -sd + --service-description + Generates the service descriptor (i.e. server.xml). Default is off. only valid with -ss, the server side code generation option + - -d - Specifies the Databinding framework. valid values are + -d + --databinding-method + Specifies the Databinding framework. valid values are xmlbeans,adb and none. Default is adb. + + + + -g + --generate-all + Genrates all the classes. This option is valid only + with the -ss (server side code generation) option. When on, the + client code (stubs) will also be generated along with the + skeleton. + + + + -u + --unpack-classes + Unpack classes. This option specifies whether to unpack + the classes and generate seperate classes for the databinders. + - -g - Genrates all the classes. This option is valid only with the --ss (server side code generation) option. When on, the client code (stubs) will also be generated -along with the skeleton. - + -sn + --service-name + Specifies the service name to be code generated. If the service name is + is not specified, then the first service will be picked + - - -u - -Unwrap classes. This option specifies whether to unwrap the classes and generate seperate classes for -the databinders. - + + -pn + --port-name + Specifies the port name to be code generated. If the port name is + is not specified, then the first port (of the selected service) will be picked + @@ -143,8 +186,9 @@ packagename The target package name. If omitted, a - default package (formed using the target  namespace of the WSDL) will - be used.  Maps to the -p option of the command line tool. + default package (formed using the target  namespace of the WSDL) + will be used.  Maps to the -p option of the command line + tool. asynconly @@ -178,6 +222,21 @@ skeletons). Only true and false are applicable as values. Default is false. Maps to the -sd option of the command line tool. + + unpackClasses + unpackes the generated classes. This forces the + databinding classes to be generated seperately, which otherwise would have been + generated as inner classes. + + + + serviceName + The name of the service + + + PortName + The name of the port + @@ -190,15 +249,15 @@ <project name="CodegenExample" default="main" basedir="."> <target name="declare" > <taskdef name="codegen" -        classname="org.apache.axis2.tool.ant.AntCodegenTask" -        classpath="classes"/> +        classname="org.apache.axis2.tool.ant.AntCodegenTask" +        classpath="classes"/> </target> <target name="main" depends="declare"> <codegen -    wsdlfilename="C:\test\wsdl\CombinedService.wsdl" -    output="C:\" -    serverside="true" -    generateserverxml="true"/> +    wsdlfilename="C:\test\wsdl\CombinedService.wsdl" +    output="C:\" +    serverside="true" +    generateserverxml="true"/> </target> </project> @@ -632,8 +691,7 @@ ex.printStackTrace(); } } -} - +}

    Now run the ant task 'ant runLogin' . The following output should appear:

    @@ -652,19 +710,19 @@ -

     

    +

     

    -

     

    +

     

    -

     

    +

     

    -

     

    +

     

    -

     

    +