最近做项目要用到远程传输,因为以前用过axis发布webservice做的,所以还想接着用,可是Axis2.X在配置的时候总是出问题,一怒之下就又用回了Axis1.4。
具体步骤如下:
首先是服务端的配置:
1.pom.xml中添加Axis1.4的依赖
<properties>
<axis.version>1.4</axis.version>
<axis-jaxrpc.version>1.2.1</axis-jaxrpc.version>
<wsdl4j.version>1.6.3</wsdl4j.version>
</properties>
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis</artifactId>
<version>${axis.version}</version>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-jaxrpc</artifactId>
<version>${axis-jaxrpc.version}</version>
</dependency>
<dependency>
<groupId>wsdl4j</groupId>
<artifactId>wsdl4j</artifactId>
<version>${wsdl4j.version}</version>
</dependency>
Spring依赖中必须包含aop
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.version}</version&