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...@locus.apache.org on 2000/11/07 14:48:24 UTC
cvs commit: xml-soap/java/samples/stockquote testit.cmd testit.sh README
dug 00/11/07 05:48:23
Modified: java/samples/addressbook README
java/samples/calculator README
java/samples/messaging README
java/samples/stockquote README
Added: java/samples/addressbook testit.cmd testit.sh
java/samples/calculator testit.cmd testit.sh
java/samples/messaging testit.cmd testit.sh
java/samples/stockquote testit.cmd testit.sh
Log:
Added some 'testit' test programs to make running the samples easier/faster.
Also added some minor text to the README files in the samples' dirs.
Revision Changes Path
1.6 +6 -2 xml-soap/java/samples/addressbook/README
Index: README
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/addressbook/README,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- README 2000/08/16 19:27:02 1.5
+++ README 2000/11/07 13:48:17 1.6
@@ -1,12 +1,16 @@
Service:
-------
-
To install this service on an Apache-SOAP listener, you need to make
the samples.addressbook package available on the Apache-SOAP listener's
classpath. Then deploy this service by filling in the deployment
template using the info in the deployment descriptor in this
-directory.
+directory or by using the service manager client:
+ java org.apache.soap.server.ServiceManagerClient routerURL deploy dd.xml
+where routerURL is the URL of the SOAP RPC router and dd.xml is the
+name of the deployment descriptor file. For example:
+ java org.apache.soap.server.ServiceManagerClient \
+ http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
Client:
1.1 xml-soap/java/samples/addressbook/testit.cmd
Index: testit.cmd
===================================================================
@echo off
echo This test assumes a server URL of http://localhost:8080/soap/server/rpcrouter
echo Deploying the addressbook 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 Getting info for "Mr Good"
java samples.addressbook.GetAddress http://localhost:8080/soap/servlet/rpcrouter "John B. Good"
echo .
echo Adding "John Doe"
java samples.addressbook.PutAddress http://localhost:8080/soap/servlet/rpcrouter "John Doe" 123 "Main Street" AnyTown SS 12345 800 555 1212
echo .
echo Query "Mr Doe" to make sure it was added
java samples.addressbook.GetAddress http://localhost:8080/soap/servlet/rpcrouter "John Doe"
echo .
echo Adding an XML file of listings
java samples.addressbook.PutListings http://localhost:8080/soap/servlet/rpcrouter sample_listings.xml
echo .
echo Get everyone!
java samples.addressbook.GetAllListings 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:AddressFetcher
echo .
echo Verify that its gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.1 xml-soap/java/samples/addressbook/testit.sh
Index: testit.sh
===================================================================
echo This test assumes a server URL of http://localhost:8080/soap/server/rpcrouter
echo Deploying the addressbook 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 Getting info for "Mr Good"
java samples.addressbook.GetAddress http://localhost:8080/soap/servlet/rpcrouter "John B. Good"
echo
echo Adding "John Doe"
java samples.addressbook.PutAddress http://localhost:8080/soap/servlet/rpcrouter "John Doe" 123 "Main Street" AnyTown SS 12345 800 555 1212
echo
echo Query "Mr Doe" to make sure it was added
java samples.addressbook.GetAddress http://localhost:8080/soap/servlet/rpcrouter "John Doe"
echo
echo Adding an XML file of listings
java samples.addressbook.PutListings http://localhost:8080/soap/servlet/rpcrouter sample_listings.xml
echo
echo Get everyone!
java samples.addressbook.GetAllListings 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:AddressFetcher
echo
echo Verify that its gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.5 +4 -3 xml-soap/java/samples/calculator/README
Index: README
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/calculator/README,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- README 2000/08/16 19:27:02 1.4
+++ README 2000/11/07 13:48:18 1.5
@@ -1,15 +1,16 @@
Service:
-------
-
To install this service on an Apache-SOAP listener, you need to make
-the samples.addressbook package available on the Apache-SOAP listener's
+the samples.calculator package available on the Apache-SOAP listener's
classpath. Then deploy this service by filling in the deployment
template using the info in the deployment descriptor in this
directory or by using the service manager client:
java org.apache.soap.server.ServiceManagerClient routerURL deploy dd.xml
-where routerURL is the URL of the SOAP RPC router and dd.xml is the
+where routerURL is the URL of the SOAP RPC router and dd.xml is the
name of the deployment descriptor file.
+ java org.apache.soap.server.ServiceManagerClient \
+ http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
Client:
1.1 xml-soap/java/samples/calculator/testit.cmd
Index: testit.cmd
===================================================================
@echo off
echo This test assumes a server URL of http://localhost:8080/soap/server/rpcrouter
echo Deploying the calcuator 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 the calculator
java samples.calculator.Calculator 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:xml-soap-demo-calculator
echo .
echo Verify that its gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.1 xml-soap/java/samples/calculator/testit.sh
Index: testit.sh
===================================================================
echo This test assumes a server URL of http://localhost:8080/soap/server/rpcrouter
echo Deploying the calcuator 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 the calculator
java samples.calculator.Calculator 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:xml-soap-demo-calculator
echo
echo Verify that its gone
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.2 +32 -14 xml-soap/java/samples/messaging/README
Index: README
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/messaging/README,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- README 2000/09/01 02:46:24 1.1
+++ README 2000/11/07 13:48:18 1.2
@@ -1,20 +1,38 @@
+Service:
+-------
+To install this service on an Apache-SOAP listener, you need to make
+the samples.addressbook package available on the Apache-SOAP listener's
+classpath. Then deploy this service by filling in the deployment
+template using the info in the deployment descriptor in this
+directory or by using the service manager client:
+ java org.apache.soap.server.ServiceManagerClient routerURL deploy dd.xml
+where routerURL is the URL of the SOAP RPC router and dd.xml is the
+name of the deployment descriptor file. For example:
+ java org.apache.soap.server.ServiceManagerClient \
+ http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
-This sample shows how the messaging stuff works. First deploy the
-message handler by deploying DeploymentDescriptor.xml:
- java org.apache.soap.server.ServiceManagerClient rpc-router-URL \
- DeploymentDescriptor.xml
-where rpc-router-URL is the URL of the RPC router servlet (typically
-http://hostname:port/soap-context-name/servlet/rpcrouter).
-
-Now run:
-
- java samples.messaging.SendMessage message-router-URL filename
-
-where message-router-URL is the URL of the message router servlet
-(typically http://hostname:port/soap-context-name/servlet/messagerouter)
-and filename is one of msg*.xml.
+Client:
+------
+ java samples.messaging.SendMessage router filename
+
+where filename is one of msg*.xml.
+
msg1.xml: contains a valid message
msg2.xml: contains a valid message to a handler that throws an exception
msg3.xml: contains a valid message to the bogus handler that was listed
in the deployment file, but doesn't exist.
+
+
+Additional Client Classpath Requirements:
+----------------------------------------
+
+ ../..
+
+
+Explanation:
+-----------
+
+
+Sample Usage:
+------------
1.1 xml-soap/java/samples/messaging/testit.cmd
Index: testit.cmd
===================================================================
@echo off
echo This test assumes a server URL of http://localhost:8080/soap/server/rpcrouter
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
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo .
echo Sending some messages...
java samples.messaging.SendMessage http://localhost:8080/soap/servlet/rpcrouter msg1.xml
java samples.messaging.SendMessage http://localhost:8080/soap/servlet/rpcrouter msg2.xml
java samples.messaging.SendMessage http://localhost:8080/soap/servlet/rpcrouter msg3.xml
echo .
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
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.1 xml-soap/java/samples/messaging/testit.sh
Index: testit.sh
===================================================================
echo This test assumes a server URL of http://localhost:8080/soap/server/rpcrouter
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
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo
echo Sending some messages...
java samples.messaging.SendMessage http://localhost:8080/soap/servlet/rpcrouter msg1.xml
java samples.messaging.SendMessage http://localhost:8080/soap/servlet/rpcrouter msg2.xml
java samples.messaging.SendMessage http://localhost:8080/soap/servlet/rpcrouter msg3.xml
echo
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
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.5 +9 -5 xml-soap/java/samples/stockquote/README
Index: README
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/stockquote/README,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- README 2000/08/16 19:27:03 1.4
+++ README 2000/11/07 13:48:19 1.5
@@ -1,12 +1,16 @@
Service:
-------
-
To install this service on an Apache-SOAP listener, you need to make
-the samples.stockquote.GetQuote class available on the
-Apache-SOAP listener's classpath. Then deploy this service by filling
-in the deployment template using the info in the deployment
-descriptor in this directory.
+the samples.addressbook package available on the Apache-SOAP listener's
+classpath. Then deploy this service by filling in the deployment
+template using the info in the deployment descriptor in this
+directory or by using the service manager client:
+ java org.apache.soap.server.ServiceManagerClient routerURL deploy dd.xml
+where routerURL is the URL of the SOAP RPC router and dd.xml is the
+name of the deployment descriptor file. For example:
+ java org.apache.soap.server.ServiceManagerClient \
+ http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
Client:
1.1 xml-soap/java/samples/stockquote/testit.cmd
Index: testit.cmd
===================================================================
@echo off
echo This test assumes a server URL of http://localhost:8080/soap/server/rpcrouter
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
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo .
echo Running the stockquote test
java samples.stockquote.GetQuote http://localhost:8080/soap/servlet/rpcrouter IBM
echo .
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
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
1.1 xml-soap/java/samples/stockquote/testit.sh
Index: testit.sh
===================================================================
echo This test assumes a server URL of http://localhost:8080/soap/server/rpcrouter
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
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list
echo
echo Running the stockquote test
java samples.stockquote.GetQuote http://localhost:8080/soap/servlet/rpcrouter IBM
echo
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
java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list