通过Xfire调用webService
1.依赖
<dependency>
<groupId>org.codehaus.xfire</groupId>
<artifactId>xfire-all</artifactId>
<version>1.2.6</version>
</dependency>
2.jar包与Spring包冲突的解决方案
直接在pom文件中将冲突的包解除依赖
<dependency>
<groupId>org.codehaus.xfire</groupId>
<artifactId>xfire-all</artifactId>
<version>1.2.6</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</exclusion>
<exclusion>
<groupId>activation</groupId>
<artifactId>activation</artifactId>
</exclusion>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
本文介绍如何使用 Xfire 1.2.6 版本调用 WebService,并解决与 Spring、activation 和 JUnit 等包的依赖冲突问题。

786

被折叠的 条评论
为什么被折叠?



