axis1.4--沉淀于webservice河床里


近日为了兼容旧有服务,捡下aixs1.4


1.Eclipse indigo (用默认集成的axis,手工则需要下载aixs开发包)。 新建JAXB项目Notify,为项目new web service.

向导中选项: 

web service type:  Top down java bean web service

service definition:  Notify.wsdl

选择两步(计划手工发布)。develop service,assemble service

finish

2.修改NotifySoapBindingImpl,增加业务逻辑。

server-config.wsdd(先找一个基础的配置),增加向导生成的Notify.wsdd中的service内容。

wsdd根据配置的变化作手工修改

3.发布.建war包,

     notify.war:  ---META-INF 默认

                              |---WEB-INF

                                   |----classes  生成服务的代码类包

                              |----web.xml       配置了axis servlet

                              |----server-config.wsdd  服务配置

                              |----lib 类包 axis-1.4.jar,jaxrpc-api-1.4.jar ,  wsdl4j-1.6.1.jar , commons-logging-1.1.1.jar

配置到tomcat6完成。


其它:项目迁移到maven,使用的依赖关系

  <dependencies>
    <dependency>
      <groupId>org.apache.axis</groupId>
      <artifactId>axis</artifactId>
      <version>1.4</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>javax.xml</groupId>
      <artifactId>jaxrpc-api</artifactId>
      <version>1.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.1</version>
      <scope>compile</scope>
    </dependency>    
    <dependency>
      <groupId>commons-discovery</groupId>
      <artifactId>commons-discovery</artifactId>
      <version>0.2</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>wsdl4j</groupId>
      <artifactId>wsdl4j</artifactId>
      <version>1.6.1</version>
      <scope>compile</scope>
    </dependency>      
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值