JEMETER against SOAP(Webservice)
上一篇 /
下一篇 2007-11-14 09:24:11
Creating a Web service and Deploying it on Apache Tomcat6
The following steps are based on Apache Tomcat 6.0. However, you can choose any servlet container and try out the same.
- Create the service implementation class.
Here we will create a simple service implementation class which adds two integers and returns its sum.
public class Jmeterservice {
public int addition(int x, int y){
return x+y;
}
}
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
tell you how to compile under all main OS.
http://math.hws.edu/javanotes/c2/index.html
tell you what is JAVA real is.
- Now you need to create the service descrīption file (services.xml) as follows. Add the contents given below to a text document and save it as 'services.xml'
<service name="Jmeterservice">
<descrīption> My first web Service </descrīption>
<parameter name="ServiceClass" locked="false">Jmeterservice</parameter>
<operation name="addition">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</operation>
</service>
3. Then you should packet the .aar packet and deploy this into Tomcat container.
.aar packet's rank should be very srict as following
A-->META-INFO->Service.xml
-->*.class
4.If jar can not be recogonized, please check the enviroment parameter in your computer.it should be end with /bin folder.
5.When aar generated please deploy this under tomcat
6.Access webservice published to verify the service is there
收藏
举报
TAG: