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.

  1. Create the service implementation class.
  2. 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.
  3. 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'
  4. <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:

引用 删除 lgj3771   /   2014-10-16 14:35:56
5
又见蝴蝶菲菲的个人空间 引用 删除 又见蝴蝶菲菲   /   2013-07-09 09:21:40
完全看不懂,不知道在说啥??
我自己是初学者,希望可以指导下我,可以吗??
 

评分:0

我来说两句

我的栏目

日历

« 2024-05-04  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 8940
  • 日志数: 15
  • 建立时间: 2007-08-27
  • 更新时间: 2008-01-07

RSS订阅

Open Toolbar