You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ch...@apache.org on 2007/04/23 12:28:34 UTC

svn commit: r531414 - /webservices/axis2/site/1_1_1/userguide-buildingservices.html

Author: chatra
Date: Mon Apr 23 03:28:22 2007
New Revision: 531414

URL: http://svn.apache.org/viewvc?view=rev&rev=531414
Log:
making correction with reference to https://issues.apache.org/jira/browse/AXIS2-2204

Modified:
    webservices/axis2/site/1_1_1/userguide-buildingservices.html

Modified: webservices/axis2/site/1_1_1/userguide-buildingservices.html
URL: http://svn.apache.org/viewvc/webservices/axis2/site/1_1_1/userguide-buildingservices.html?view=diff&rev=531414&r1=531413&r2=531414
==============================================================================
--- webservices/axis2/site/1_1_1/userguide-buildingservices.html (original)
+++ webservices/axis2/site/1_1_1/userguide-buildingservices.html Mon Apr 23 03:28:22 2007
@@ -611,12 +611,17 @@
 
 <h3>Code Listing 14 - Using the WSDL2Java Utility to Generate the Service</h3>
 
+<p><strong>Code Listing 14.1:</strong></p>
+
 <div class="source">
 <pre>java org.apache.axis2.wsdl.WSDL2Java -uri 
 file:///C:/apps/axis2/samples/zSample/Axis2UserGuide.wsdl -p 
 org.apache.axis2.axis2userguide -o target_directory_name -d adb -s -wv 1.1 -ss -sd </pre>
 </div>
 
+<p>Note: Make sure all the .jar files in the Axis2 lib directory is set to
+the CLASSPATH before you run the above code.</p>
+
 <p>This statement tells the utility you want to create a service out of the
 operations in the file Axis2UserGuide.wsdl, and that the Java classes
 generated should be in the org.apache.axis2.axis2userguide package (-p). (You
@@ -629,11 +634,34 @@
 services.xml service descriptor file (-sd). It also specifies version 1.1 for
 the WSDL file (-wv).</p>
 
-<p>At this point, you should see three new items in your chosen directory:
-the build.xml file, which includes instructions for Ant, the src directory,
-which includes all of the generated classes and stubs, the resources
-directory, which includes a regenerated version of the WSDL, and the
-services.xml file, which ultimately controls the service's behavior.</p>
+<p><strong>Code Listing 14.2:</strong></p>
+
+<p>You can also use the following script files to achieve the same. In this
+case you do not have the set the CLASSPATH manually.</p>
+
+<p>For Linux:</p>
+
+<div class="source">
+<pre>$AXIS2_HOME/bin/wsdl2java.sh -uri
+file:///C:/apps/axis2/samples/zSample/Axis2UserGuide.wsdl
+-p org.apache.axis2.axis2userguide -o target_directory_name -d adb
+-s -wv 1.1 -ss -sd</pre>
+</div>
+
+<p>For MS Windows:</p>
+
+<div class="source">
+<pre>%AXIS2_HOME%\bin\wsdl2java.bat -uri
+file:\\\C:\apps\axis2\samples\zSample\Axis2UserGuide.wsdl
+-p org.apache.axis2.axis2userguide -o target_directory_name -d adb
+-s -wv 1.1 -ss -sd</pre>
+</div>
+
+<p>In both instances, at this point, you should see three new items in your
+chosen directory: the build.xml file, which includes instructions for Ant,
+the src directory, which includes all of the generated classes and stubs, the
+resources directory, which includes a regenerated version of the WSDL, and
+the services.xml file, which ultimately controls the service's behavior.</p>
 
 <p>You can compile the service at this point, but it doesn't actually do
 anything yet. You can solve that problem by opening the



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org