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 to...@apache.org on 2002/08/20 16:29:10 UTC
cvs commit: xml-axis/java/samples/transport/tcp readme
tomj 2002/08/20 07:29:10
Modified: java/samples/transport/tcp readme
Log:
A better README file from Rohit Karlupia [rkarlupia@in.firstrain.com]
Revision Changes Path
1.2 +22 -6 xml-axis/java/samples/transport/tcp/readme
Index: readme
===================================================================
RCS file: /home/cvs/xml-axis/java/samples/transport/tcp/readme,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- readme 24 Apr 2002 15:00:33 -0000 1.1
+++ readme 20 Aug 2002 14:29:10 -0000 1.2
@@ -1,4 +1,4 @@
-To run the encoding samples, you must do the following:
+To run the TCP Transport samples, do the following:
1. Set up your CLASSPATH.
2. Start a server.
3. Deploy the service.
@@ -10,14 +10,30 @@
containing the samples subdirectory.
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
+ To run the sample, you will first need to run a server. To run the TCP
+ server:
+ java samples.transport.tcp.TCPListener -p <SERVER_PORT>
3. Deploy the service.
To deploy the service, run:
- java samples.transport.tcp.AdminClient deploy.wsdd
+ java samples.transport.tcp.AdminClient -l tcp://<SERVER_NAME>:<SERVER_PORT> deploy.wsdd
+
+ TCPListner does not save the deployed services in any config files. So you have
+ to deploy the service every time you restart the TCPListener.
+
+ The list of currently deployed services can be seen using:
+ java samples.transport.tcp.AdminClient -l tcp://<SERVER_NAME>:<SERVER_PORT> list
4. Run the sample.
Finally, to run the client, run:
- java samples.transport.tcp.GetQuote XXX
+ java samples.transport.tcp.GetQuote -l tcp://<SERVER_NAME>:<SERVER_PORT> <SYMBOL>
+
+
+Also note that if you use some other URL scheme, for example, http://...... in the
+step 4, the request is sent using the HTTP protocol. Thus if you are not using the
+TCPListener, but some HTTP server or SimpleAxisServer, you can use the same client
+with URL = http://<SERVER_NAME>:<SERVER_PORT>/ServicePATH to invoke the service.
+
+The onwire representation of the TCP transport request is:
+<SIZE_OF_THE_MESSAGE> <NEWLINE> <SOAP_MESSAGE>
+