axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r379326 - /webservices/axis2/site/0_94/CodegenToolReference.html
Date Tue, 21 Feb 2006 04:17:46 GMT
Author: chinthaka
Date: Mon Feb 20 20:17:43 2006
New Revision: 379326

URL: http://svn.apache.org/viewcvs?rev=379326&view=rev
Log:
removed wizard concept & corrected layout of code. thanks Chatra

Modified:
    webservices/axis2/site/0_94/CodegenToolReference.html

Modified: webservices/axis2/site/0_94/CodegenToolReference.html
URL: http://svn.apache.org/viewcvs/webservices/axis2/site/0_94/CodegenToolReference.html?rev=379326&r1=379325&r2=379326&view=diff
==============================================================================
--- webservices/axis2/site/0_94/CodegenToolReference.html (original)
+++ webservices/axis2/site/0_94/CodegenToolReference.html Mon Feb 20 20:17:43 2006
@@ -1,9 +1,9 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Axis
2.0 - Code Generator Wizard</title><style type="text/css" media="all">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Axis
2.0 - Code Generator - Command Line Tool</title><style type="text/css" media="all">
           @import url("../style/maven-base.css");
           
 			    @import url("../style/maven-theme.css");</style><link rel="stylesheet" href="../style/print.css"
type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a
href="http://www.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation"
src="http://www.apache.org/images/asf-logo.gif"></img></a><a href="http://ws.apache.org/axis2/"
id="projectLogo"><img alt="Apache Axis 2.0" src="http://ws.apache.org/axis2/images/axis.jpg"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div
class="xleft">
-                	Last published: 25 January 2006
-                  | Doc for 0.94</div><div class="xright"></div><div
class="clear"><hr></hr></div></div><div id="leftColumn"><div
id="navcolumn"><div id="menuAxis_2_0"><h5>Axis 2.0</h5><ul><li
class="none"><a href="../index.html">Home</a></li><li class="expanded"><a
href="../">Download Axis2</a><ul><li class="none"><a href="../download.cgi">Releases</a></li><li
class="none"><a href="http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/?root=Apache-SVN"
class="externalLink" title="External Link">Source Code</a></li></ul></li><li
class="expanded"><a href="../">Documentation</a><ul><li class="none"><a
href="../0_93/index.html">Version 0.93</a></li><li class="none"><a
href="../0_94/index.html">Version 0.94</a></li></ul></li><li
class="expanded"><a href="../overview.html">Get Involved</a><ul><li
class="none"><a href="../svn.html">Checkout the Source</a></li><li
class="none"><a href="../siteHowTo.html">Build the Site</a></li><li
class="none"><a href="../guidelines.html">Devel
 oper Guidelines</a></li><li class="none"><a href="../refLib.html">Reference
Library</a></li><li class="none"><a href="../mail-lists.html">Mailing
Lists</a></li><li class="none"><a href="../faq.html">FAQ</a></li></ul></li><li
class="none"><a href="../modules/index.html">Modules</a></li><li class="none"><a
href="../thanks.html">Acknowledgements</a></li><li class="expanded"><a
href="../">Project Information</a><ul><li class="none"><a href="../team-list.html">Project
Team</a></li><li class="none"><a href="../issue-tracking.html">Issue
Tracking</a></li></ul></li></ul></div><a href="http://maven.apache.org/"
title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../images/logos/maven-button-1.png"></img></a></div></div><div
id="bodyColumn"><div class="contentBox"><div class="section"><a name="Code_Generator_Wizard_-_Command_Line_Tool"></a><h2>Code
Generator Wizard - Command Line Tool</h2><div class="subsection"><a name="Introduction"></a><h3>Introduction</h3><p>Just

 as old times there will be users who wish to use the command line
+                	Last published: 21 February 2006
+                  | Doc for 0.94</div><div class="xright"></div><div
class="clear"><hr></hr></div></div><div id="leftColumn"><div
id="navcolumn"><div id="menuAxis_2_0"><h5>Axis 2.0</h5><ul><li
class="none"><a href="../index.html">Home</a></li><li class="expanded"><a
href="../">Download Axis2</a><ul><li class="none"><a href="../download.cgi">Releases</a></li><li
class="none"><a href="http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/?root=Apache-SVN"
class="externalLink" title="External Link">Source Code</a></li></ul></li><li
class="expanded"><a href="../">Documentation</a><ul><li class="none"><a
href="../0_93/index.html">Version 0.93</a></li><li class="none"><a
href="../0_94/index.html">Version 0.94</a></li></ul></li><li
class="expanded"><a href="../overview.html">Get Involved</a><ul><li
class="none"><a href="../svn.html">Checkout the Source</a></li><li
class="none"><a href="../siteHowTo.html">Build the Site</a></li><li
class="none"><a href="../guidelines.html">Devel
 oper Guidelines</a></li><li class="none"><a href="../refLib.html">Reference
Library</a></li><li class="none"><a href="../mail-lists.html">Mailing
Lists</a></li><li class="none"><a href="../faq.html">FAQ</a></li></ul></li><li
class="none"><a href="../modules/index.html">Modules</a></li><li class="none"><a
href="../thanks.html">Acknowledgements</a></li><li class="expanded"><a
href="../">Project Information</a><ul><li class="none"><a href="../team-list.html">Project
Team</a></li><li class="none"><a href="../issue-tracking.html">Issue
Tracking</a></li></ul></li></ul></div><a href="http://maven.apache.org/"
title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../images/logos/maven-button-1.png"></img></a></div></div><div
id="bodyColumn"><div class="contentBox"><div class="section"><a name="Code_Generator_-_Command_Line_Tool"></a><h2>Code
Generator - Command Line Tool</h2><div class="subsection"><a name="Introduction"></a><h3>Introduction</h3><p>Just
as old times t
 here will be users who wish to use the command line
 version of the tool. This basic tool is implemented by the WSDL2Code class
 and just for the convenience in the java case (which would be the majority)
 there is another WSDL2Java class. One can choose to run the main classes
@@ -59,7 +59,7 @@
   </tbody></table><p>Apart from these mentioned options one can pass extra
option by prefixing
 them with -E (uppercase). These extra options will be processed by the
 extensions. The extra options that can be passed are documented separately
-with the extensions documentation (For example with ADB)</p></div></div><div
class="section"><a name="Code_Generator_Wizard_-_Ant_Task"></a><h2>Code
Generator Wizard - Ant Task</h2><p>The code generator also comes bundled with
an Ant task. The ant task is
+with the extensions documentation (For example with ADB)</p></div></div><div
class="section"><a name="Code_Generator_-_Ant_Task"></a><h2>Code Generator
- Ant Task</h2><p>The code generator also comes bundled with an Ant task. The
ant task is
 implemented by the org.apache.axis2.tool.ant.AntCodegenTask class. Following
 are the ant task attributes.</p><div class="subsection"><a name="Ant_Task_Reference"></a><h3>Ant
Task Reference</h3><table class="bodyTable"><tbody>
     <tr class="b"><td width="50%" height="19">wsdlfilename</td><td width="50%"
height="19">WSDL file location. Maps to the uri option
@@ -189,7 +189,7 @@
     &lt;echo message="  wsdl2java               - Generate source from WSDL" /&gt;
     &lt;echo message=" " /&gt;
     &lt;echo message=" AAR:" /&gt;
-    &lt;echo message="  aar               - Generate an .aar for deployment into WEB-INF/services"
/&gt;
+    &lt;echo message="  aar     - Generate an .aar for deployment into WEB-INF/services"
/&gt;
 
     &lt;echo message=" " /&gt;
     &lt;echo message=" Executing:" /&gt;
@@ -303,16 +303,22 @@
 
 </pre></div>
   <p>The above build.xml depends on a build.properties file which defines
-'axis.home', such as:</p><p>axis.home=/home/username/axis2-0.93-bin/</p><p>The
above build.xml example also assumes three empty directories exist,
+'axis.home', such as:</p><p>axis.home=/home/username/axis2-0.94-bin/</p><p>The
above build.xml example also assumes three empty directories exist,
 'dist', 'lib', and 'src'.</p><p>Below is a validated WSDL Document following
the Document/Literal Style.
 The name of this file matches the name used in the WSDL2Java ant task above,
 LoginEndpoint.wsdl</p>
     <div class="source"><pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
 
-&lt;definitions name="LoginService" targetNamespace="http://login" xmlns:tns="http://login"
xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:ns2="http://login/types"&gt;
+&lt;definitions name="LoginService" targetNamespace="http://login" xmlns:tns="http://login"

+xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
+xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns2="http://login/types"&gt;
 
   &lt;types&gt;
-    &lt;schema targetNamespace="http://login/types" xmlns:tns="http://login/types" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://www.w3.org/2001/XMLSchema"&gt;
+    &lt;schema targetNamespace="http://login/types" xmlns:tns="http://login/types" 
+    xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" 
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns="http://www.w3.org/2001/XMLSchema"&gt;
       &lt;import namespace="http://schemas.xmlsoap.org/soap/encoding/"/&gt;
       &lt;element name="returnWebLoginElement"&gt;
         &lt;complexType&gt;
@@ -369,7 +375,8 @@
 
   &lt;service name="LoginService"&gt;
     &lt;port name="LoginEndpointPort" binding="tns:LoginEndpointBinding"&gt;
-      &lt;soap:address location="http://localhost:8080/axis2/services/LoginEndpoint"/&gt;&lt;/port&gt;&lt;/service&gt;&lt;/definitions&gt;
+      &lt;soap:address location="http://localhost:8080/axis2/services/LoginEndpoint"/&gt;&lt;/port&gt;
+      &lt;/service&gt;&lt;/definitions&gt;
 
 </pre></div>
   <p>Place the above file, named LoginEndpoint.wsdl, in the directory 'wsdl'
@@ -423,7 +430,7 @@
      
      */
     public  org.example.types.databinding.login.ReturnWebLoginElementDocument webLogin
-              (org.example.types.databinding.login.WebLoginElementDocument webLoginElementDocument
){
+       (org.example.types.databinding.login.WebLoginElementDocument webLoginElementDocument){
 
             //Todo fill this with the necessary business logic
             System.out.println("LoginEndpointSkeleton.webLogin reached successfully!");
@@ -443,7 +450,8 @@
             
             org.example.types.databinding.login.ReturnWebLoginElementDocument.ReturnWebLoginElement
             retElement =
-             org.example.types.databinding.login.ReturnWebLoginElementDocument.ReturnWebLoginElement.Factory.newInstance();
+             org.example.types.databinding.login.ReturnWebLoginElementDocument.ReturnWebLoginElement.
+               Factory.newInstance();
             
             retElement.setWebUserNameElement("joe sixpack");
             retElement.setSoapSessionIdElement("some_random_string");



Mime
View raw message