butek 02/04/19 11:12:23
Modified: java/samples/addr Main.java readme
java/samples/attachments README
Log:
Cleaning up samples readme files...
Revision Changes Path
1.18 +1 -0 xml-axis/java/samples/addr/Main.java
Index: Main.java
===================================================================
RCS file: /home/cvs/xml-axis/java/samples/addr/Main.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- Main.java 23 Feb 2002 00:48:27 -0000 1.17
+++ Main.java 19 Apr 2002 18:12:22 -0000 1.18
@@ -126,6 +126,7 @@
Options opts = new Options(args);
System.err.println ("Using proxy without session maintenance.");
+ System.err.println ("(queries without session should say: \"ADDRESS NOT
FOUND!\")");
AddressBookService abs = new AddressBookServiceLocator();
opts.setDefaultURL( abs.getAddressBookAddress() );
1.10 +33 -29 xml-axis/java/samples/addr/readme
Index: readme
===================================================================
RCS file: /home/cvs/xml-axis/java/samples/addr/readme,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- readme 22 Mar 2002 20:41:48 -0000 1.9
+++ readme 19 Apr 2002 18:12:22 -0000 1.10
@@ -1,29 +1,33 @@
-The address book sample requires that you generate the Java bindings from
-the AddressBook.wsdl file.
-
-First, set up the CLASSPATH. It must contain an XML parser (ie., xerces.jar);
-all the jars in the lib directory; and the directory containing the samples
-subdirectory.
-
-Now change directory to the directory that contains the samples subdirectory.
-
-Finally, run the command:
-
-java org.apache.axis.wsdl.WSDL2Java -s -d Session
-Nurn:AddressFetcher2=samples.addr samples\addr\AddressBook.wsdl
-
-This will generate all the bindings, both client-side and server-side,
-into the samples/addre subdirectory.
-
-Now you can change directory to samples/addr and compile the sample.
-BUT FIRST, this sample depends on junit, so you have to get junit.jar
-(www.junit.org) and add it to your CLASSPATH. THEN you can compile:
-
-javac *.java
-
-To run the sample, you will first need to run a server. To run a very simple
server you could run,
-in a separate window:
-
-java org.apache.axis.transport.http.SimpleAxisServer -p 8080
-
-Finally, to run the client, simple run testit.sh or testit.cmd,
-depending on your platform.
+To run the address book sample, you must do the following:
+1. Set up your CLASSPATH.
+2. Generate the Java bindings from the AddressBook.wsdl file.
+3. Compile the code.
+4. Start a server.
+5. Run the sample.
+
+1. Set up your CLASSPATH.
+ The CLASSPATH must contain: an XML parser (ie., Xerces), JUnit
+ (www.junit.org), all the jars in the lib directory, and the directory
+ containing the samples subdirectory.
+
+2. Generate the Java bindings from the AddressBook.wsdl file.
+ a. Change directory to the directory that contains the samples
+ subdirectory.
+ b. Run the command: java org.apache.axis.wsdl.WSDL2Java -s -d Session
+ -Nurn:AddressFetcher2=samples.addr samples\addr\AddressBook.wsdl
+
+ This will generate all the bindings, both client-side and server-side,
+ into the samples/addr subdirectory.
+
+3. Compile the code.
+ a. Now you can change directory to samples/addr
+ b. And compile the sample: javac *.java
+
+4. Start a server.
+ To run the sample, you will first need to run a server. To run a very
+ simple server you could run, in a separate window:
+ java org.apache.axis.transport.http.SimpleAxisServer -p 8080
+
+5. Run the sample.
+ Finally, to run the client, run testit.sh or testit.cmd, depending on
+ your platform.
1.3 +31 -12 xml-axis/java/samples/attachments/README
Index: README
===================================================================
RCS file: /home/cvs/xml-axis/java/samples/attachments/README,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- README 11 Dec 2001 13:23:56 -0000 1.2
+++ README 19 Apr 2002 18:12:23 -0000 1.3
@@ -1,17 +1,36 @@
-Deploy:
- java org.apache.axis.client.AdminClient attachdeploy.wsdd
+To run the attachments sample, you must do the following:
+1. Set up your CLASSPATH.
+2. Start a server.
+3. Deploy the sample.
+4. Run the sample.
-Usage:
- java samples.attachments.EchoAttachment [options] file | dir
+1. Set up your CLASSPATH.
+ The CLASSPATH must contain: an XML parser (ie., Xerces), JUnit
+ (www.junit.org), mail and activation jars (ie., Tomcat's mail.jar and
+ activation.jar), all the jars in the lib directory, and the directory
+ containing the samples subdirectory.
- options:
- -d turn on debugging - more 'd means more info
- -h<HOST> server host name
- -l<URL> ie. http://localhost:80/axis/servlet/AxisServlet
- -p<PORT#> server port number
- -s<SERVLET> ie. axis/servlet/AxisServlet
- -u<USERID> user-id
- -w<PASSWD> password
+2. Start a server.
+ To run the sample, you will first need to run a server. To run a very
+ simple server you could run, in a separate window:
+ java org.apache.axis.transport.http.SimpleAxisServer -p 8080
+
+3. Deploy the sample.
+ To deploy the sample, run:
+ java org.apache.axis.client.AdminClient attachdeploy.wsdd
+
+4. Run the sample.
+ Usage:
+ java samples.attachments.EchoAttachment [options] file | dir
+
+ options:
+ -d turn on debugging - more 'd means more info
+ -h<HOST> server host name
+ -l<URL> ie. http://localhost:80/axis/servlet/AxisServlet
+ -p<PORT#> server port number
+ -s<SERVLET> ie. axis/servlet/AxisServlet
+ -u<USERID> user-id
+ -w<PASSWD> password
If you use the authorization and authentication handlers you'll need
to add a couple of files to your Servlet Engine's current dir: