Axis2 and java5 annotations

1. Download an Axis2-Snapshot from http://people.apache.org/dist/axis2/nightly/
2. Create a directory, pojo at AXIS2_HOME/repository/

3. Update the following entry in axis2.xml
<deployer extension=".jar" directory="pojo" class="org.apache.axis2.deployment.POJODeployer"/>
4. Restart axis2server

5. Write a simple annotated pojo as below

package org.myservice.test;

import javax.jws.WebMethod;
import javax.jws.WebService;

@WebService(name= "AXIS2JAXWS_WS_TEST_Service", targetNamespace = "http://www.test.org/jaxws";)
public class axis2jaxwsservice {
@WebMethod (operationName = "echojaxwsString", action="urn:echoaction")
   public String echo(String s){
       return s;
   }
}

6. Compile the above class with jdk15 and include it in a jar. Assume it is jaxwstest.jar
7. copy jaxwstest.jar in to AXIS2_HOME/repository/pojo directory

8. Access http://localhost:8080 and verify the service is deployed properly.
If the deployment is successful, write a client and invoke the service.


There is a sample jax-ws calculator included in AXis2_home/samples directory. That will also help you.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值