Components required for running the class files
-Apache tomcat server
-java runtime installed
-the default application folder under tomcat is webapps.
download the latest zip file of apache axis and unzip the archive.
the unzipped archive consists of a folder called webapps.
copy the axis folder from here and paste it into the webapps folder under tomcat.
thereupon, it is necessary to create some environment variables and test whether the axis services have been installed properly. additionally, it is required that xerces (an xml parsing package) be installed. the process of putting the jars required for using xerces under axis and testing the installation of apache axis is explained clearly at:
the url for launching the web services should then be http://localhost:8080/axis/someService.jws.
copy source.java, subscriber.java and sink.java into the axis folder under tomcat and rename it into .jws from .java
in order to deploy each of the web services, all that is required is to simply open a new browser and type the above url with the appropriate file name.
For the purpose of the present set up, the subscriber, source & sink web services, will also be deployed.
The file that will initiate the operations such as requesting a subscription will be called the calcClient.java. this will include methods that will call the methods available with the sink such as initiateSubscription and will be the consumer of the notification messages. the client method will also pass on parameters for the appropriate operation (such as two integers for an addition or substraction as well as the appropriate command for the desired operation to perform, which will therefore be of the form add, i1, i2. this will be sent via XML format.)
Upon the establishment and validation of a subscription, the commands that will be issued by the client through the sink will be parsed by the source class and...