You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by du...@apache.org on 2001/05/16 05:50:44 UTC
cvs commit: xml-soap/java/samples/stockquote testit.cmd testit.sh
duftler 01/05/15 20:50:44
Modified: java/samples/addressbook testit.cmd testit.sh
java/samples/calculator README testit.cmd testit.sh
java/samples/com readme.htm
java/samples/com/client addit.java sum.java
java/samples/messaging testit.cmd testit.sh
java/samples/provider testit.cmd testit.sh
java/samples/stockquote testit.cmd testit.sh
Added: java/samples/addressbook2 testit.cmd testit.sh
Log:
Move sum and addit classes to samples.com.client.Sum and
samples.com.client.Addit, respectively. (Otherwise, they
end up getting compile into the build directory, instead
of into the build\samples\com\client directory.)
Add "testit" batch files.
Update description of BSF dependencies.
Fix typos.
Revision Changes Path
1.2 +2 -2 xml-soap/java/samples/addressbook/testit.cmd
Index: testit.cmd
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/addressbook/testit.cmd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testit.cmd 2000/11/07 13:48:17 1.1
+++ testit.cmd 2001/05/16 03:50:42 1.2
@@ -1,5 +1,5 @@
@echo off
-echo This test assumes a server URL of http://localhost:8080/soap/server/rpcrouter
+echo This test assumes a server URL of http://localhost:8080/soap/servlet/rpcrouter
echo Deploying the addressbook service...
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
echo .
@@ -24,5 +24,5 @@
echo Undeploy it now
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:AddressFetcher
echo .
-echo Verify that its gone
+echo Verify that it's gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.2 +1 -1 xml-soap/java/samples/addressbook/testit.sh
Index: testit.sh
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/addressbook/testit.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testit.sh 2000/11/07 13:48:17 1.1
+++ testit.sh 2001/05/16 03:50:42 1.2
@@ -23,5 +23,5 @@
echo Undeploy it now
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:AddressFetcher
echo
-echo Verify that its gone
+echo Verify that it's gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.1 xml-soap/java/samples/addressbook2/testit.cmd
Index: testit.cmd
===================================================================
@echo off
echo This test assumes a server URL of http://localhost:8080/soap/servlet/rpcrouter
echo Deploying the addressbook2 service...
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
echo .
echo Verify that its there
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo .
echo Running demo...
java samples.addressbook2.Main http://localhost:8080/soap/servlet/rpcrouter
echo .
echo Undeploy it now
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:AddressFetcher2
echo .
echo Verify that it's gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.1 xml-soap/java/samples/addressbook2/testit.sh
Index: testit.sh
===================================================================
echo This test assumes a server URL of http://localhost:8080/soap/servlet/rpcrouter
echo Deploying the addressbook2 service...
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
echo
echo Verify that its there
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo
echo Running demo...
java samples.addressbook2.Main http://localhost:8080/soap/servlet/rpcrouter
echo
echo Undeploy it now
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:AddressFetcher2
echo
echo Verify that it's gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.7 +1 -1 xml-soap/java/samples/calculator/README
Index: README
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/calculator/README,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- README 2001/01/18 23:21:24 1.6
+++ README 2001/05/16 03:50:42 1.7
@@ -22,7 +22,7 @@
Additional Server Classpath Requirements:
----------------------------------------
- bsf.jar and bsfengines.jar from the Bean Scripting Framework:
+ bsf.jar from the Bean Scripting Framework:
http://oss.software.ibm.com/developerworks/opensource/bsf/
js.jar from Rhino - JavaScript for Java:
http://www.mozilla.org/rhino/
1.2 +3 -3 xml-soap/java/samples/calculator/testit.cmd
Index: testit.cmd
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/calculator/testit.cmd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testit.cmd 2000/11/07 13:48:18 1.1
+++ testit.cmd 2001/05/16 03:50:42 1.2
@@ -1,9 +1,9 @@
@echo off
echo This test assumes a server URL of http://localhost:8080/soap/server/rpcrouter
-echo Deploying the calcuator service...
+echo Deploying the calculator service...
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
echo .
-echo Verify that its there
+echo Verify that it's there
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo .
echo Running the calculator
@@ -12,5 +12,5 @@
echo Undeploy it now
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:xml-soap-demo-calculator
echo .
-echo Verify that its gone
+echo Verify that it's gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.2 +3 -3 xml-soap/java/samples/calculator/testit.sh
Index: testit.sh
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/calculator/testit.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testit.sh 2000/11/07 13:48:18 1.1
+++ testit.sh 2001/05/16 03:50:42 1.2
@@ -1,8 +1,8 @@
echo This test assumes a server URL of http://localhost:8080/soap/server/rpcrouter
-echo Deploying the calcuator service...
+echo Deploying the calculator service...
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
echo
-echo Verify that its there
+echo Verify that it\'s there
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo
echo Running the calculator
@@ -11,5 +11,5 @@
echo Undeploy it now
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:xml-soap-demo-calculator
echo
-echo Verify that its gone
+echo Verify that it\'s gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.3 +7 -7 xml-soap/java/samples/com/readme.htm
Index: readme.htm
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/com/readme.htm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- readme.htm 2001/03/30 21:34:21 1.2
+++ readme.htm 2001/05/16 03:50:43 1.3
@@ -113,19 +113,19 @@
<h3>Files</h3>
<table border=1 cellspacing=0 cellpadding=0 frame=below rules=none >
<tr>
-<td valign=top>client\addit.class</td>
+<td valign=top>client\Addit.class</td>
<td>The Java class file requesting the adder SOAP service.</td>
</tr>
<tr>
-<td valign=top>client\addit.java</td>
+<td valign=top>client\Addit.java</td>
<td>The Java source code for the above file.</td>
</tr>
<tr>
-<td valign=top>client\sum.class</td>
+<td valign=top>client\Sum.class</td>
<td>The Java class file requesting the totals SOAP service.</td>
</tr>
<tr>
-<td valign=top>client\sum.java</td>
+<td valign=top>client\Sum.java</td>
<td>The Java source code for the above file.</td>
</tr>
<tr>
@@ -185,11 +185,11 @@
your objects are and this is the reason behind the lines REGSVR32 /s <com object's dll> name. This only needs to happen once unless you move or rename the dll.
You should be now able to issue SOAP requests to the two SOAP services just deployed.</i>
<li>Change to the comprovider client directory.
-<li>Run for example: <CODE><b>java addit 3 4</b></CODE><br>
+<li>Run for example: <CODE><b>java samples.com.client.Addit 3 4</b></CODE><br>
<i> It takes any two integers as arguments and sends it over to the server to be added and returns the result.</i>
-<li>For the second SOAP service run: <code><b>java sum 4</b></code><br>
+<li>For the second SOAP service run: <code><b>java samples.com.client.Sum 4</b></code><br>
<i>This will send the integer over to be added to a total that's kept in a file. You can continue to issue this request to add to the total.</i>
-<li>To set it to a specific value, run: <code><b>java sum -set 9</b></code><br>
+<li>To set it to a specific value, run: <code><b>java samples.com.client.Sum -set 9</b></code><br>
<i>To set it to 9 for example.</i>
<li>To stop the services go back to the server directory and run: <code><b>rundemo undeploy</b></code>.
</ul>
1.3 +5 -2 xml-soap/java/samples/com/client/addit.java
Index: addit.java
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/com/client/addit.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- addit.java 2001/04/13 11:36:39 1.2
+++ addit.java 2001/05/16 03:50:43 1.3
@@ -54,13 +54,16 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
+package samples.com.client;
+
import java.io.*;
import java.net.*;
import java.util.*;
import org.apache.soap.*;
import org.apache.soap.rpc.*;
-public class addit
+
+public class Addit
{
public static void main( String[] args) throws Exception
{
@@ -106,7 +109,7 @@
}
private static void explain()
{
- System.err.println("Please provide two integers as inputs to add!");
+ System.err.println("Please provide two integers as inputs to add!");
System.exit(8);
}
static String serverhost= "localhost";
1.3 +4 -1 xml-soap/java/samples/com/client/sum.java
Index: sum.java
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/com/client/sum.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sum.java 2001/04/13 11:36:39 1.2
+++ sum.java 2001/05/16 03:50:43 1.3
@@ -54,13 +54,16 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
+package samples.com.client;
+
import java.io.*;
import java.net.*;
import java.util.*;
import org.apache.soap.*;
import org.apache.soap.rpc.*;
-public class sum
+
+public class Sum
{
public static void main( String[] args) throws Exception
{
1.3 +2 -2 xml-soap/java/samples/messaging/testit.cmd
Index: testit.cmd
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/messaging/testit.cmd,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- testit.cmd 2000/12/29 15:14:50 1.2
+++ testit.cmd 2001/05/16 03:50:43 1.3
@@ -4,7 +4,7 @@
echo Deploying the messaging service...
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
echo .
-echo Verify that its there
+echo Verify that it's there
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo .
echo Sending some messages...
@@ -15,5 +15,5 @@
echo Undeploy it now
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:po-processor
echo .
-echo Verify that its gone
+echo Verify that it's gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.3 +2 -2 xml-soap/java/samples/messaging/testit.sh
Index: testit.sh
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/messaging/testit.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- testit.sh 2000/12/29 15:14:50 1.2
+++ testit.sh 2001/05/16 03:50:43 1.3
@@ -3,7 +3,7 @@
echo Deploying the messaging service...
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
echo
-echo Verify that its there
+echo Verify that it\'s there
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo
echo Sending some messages...
@@ -14,5 +14,5 @@
echo Undeploy it now
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:po-processor
echo
-echo Verify that its gone
+echo Verify that it\'s gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.2 +2 -2 xml-soap/java/samples/provider/testit.cmd
Index: testit.cmd
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/provider/testit.cmd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testit.cmd 2000/11/08 12:58:19 1.1
+++ testit.cmd 2001/05/16 03:50:43 1.2
@@ -3,7 +3,7 @@
echo Deploying the testprovider service...
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
echo .
-echo Verify that its there
+echo Verify that it's there
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo .
echo Running the testprovider client
@@ -12,5 +12,5 @@
echo Undeploy it now
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:testprovider
echo .
-echo Verify that its gone
+echo Verify that it's gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.2 +2 -2 xml-soap/java/samples/provider/testit.sh
Index: testit.sh
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/provider/testit.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testit.sh 2000/11/08 12:58:19 1.1
+++ testit.sh 2001/05/16 03:50:43 1.2
@@ -2,7 +2,7 @@
echo Deploying the testprovider service...
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
echo
-echo Verify that its there
+echo Verify that it\'s there
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo
echo Running the testprovider client
@@ -11,5 +11,5 @@
echo Undeploy it now
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:testprovider
echo
-echo Verify that its gone
+echo Verify that it\'s gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.2 +2 -2 xml-soap/java/samples/stockquote/testit.cmd
Index: testit.cmd
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/stockquote/testit.cmd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testit.cmd 2000/11/07 13:48:23 1.1
+++ testit.cmd 2001/05/16 03:50:44 1.2
@@ -3,7 +3,7 @@
echo Deploying the stockquote service...
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
echo .
-echo Verify that its there
+echo Verify that it's there
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo .
echo Running the stockquote test
@@ -12,5 +12,5 @@
echo Undeploy it now
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:xmltoday-delayed-quotes
echo .
-echo Verify that its gone
+echo Verify that it's gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.2 +2 -2 xml-soap/java/samples/stockquote/testit.sh
Index: testit.sh
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/stockquote/testit.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testit.sh 2000/11/07 13:48:23 1.1
+++ testit.sh 2001/05/16 03:50:44 1.2
@@ -2,7 +2,7 @@
echo Deploying the stockquote service...
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
echo
-echo Verify that its there
+echo Verify that it\'s there
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo
echo Running the stockquote test
@@ -11,5 +11,5 @@
echo Undeploy it now
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:xmltoday-delayed-quotes
echo
-echo Verify that its gone
+echo Verify that it\'s gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list