I have modified the existing SOAP web service project here -> -a-simple-web-service-using-apache-axis-1-4/ with some minor modifications to use Maven for deployment.The command line to generate the stubs is still the same, but with javax.mail.jre15_1.4.1 jar added:
Enter some port number (other than 8080), say 9090 in the Listen Port Text Field and click the Add button. You can see a new second tab opening in the same dialog. Now, launch the browser with the following URL, ' :9090/axis'. Now go back to the Tab window to find the Request and the Response in the form of Html format. By listening to the port 9090, whatever Request comes to port 8080, the Tcp Monitor simply forwards the Request and Response to the listening port.
As we can see, the service name is given as 'PlayerService' which is referring the class 'net.javabeat.apache.axis.webservices.playerservices.PlayerService' containing all the service methods. Also, we have assigned the value '*' to the property 'allowedMethods' meaning that we have granted permission to access all the public methods inside the PlayerService class. Before running the DeployPlayer class, make sure the class-path is made to point the following jars.
To check whether the deployment has actually happened or not, launch your browser (with the Tomcat Server running) to the following URL. :8080/axis/servlet/AxisServlet. There you can see the Player Service among the list of other Web Services, under which you can also find out the list of the operations supported by the Service.
Player Service along the list of Web Services
The above Client is making use of Axis specific API to access the Web Service. A Call (org.apache.axis.client.Call) object encapsulates a Web Service, which should point to a URL as represented by the Call.setTargetEndpointAddress(). A Call object is usually created using the Service object which is represented by org.apache.axis.client.Service. Invocation of the Web Service operation is made by specifying the operation name and the list of arguments it is going to accept through Call.invoke().
aa06259810