用于简单肥皂"rpc编码"的Axis2依赖关系可以在图2中找到.称呼 [英] Axis2 dependencies for a simple soap "rpc encoding" call

查看:55
本文介绍了用于简单肥皂"rpc编码"的Axis2依赖关系可以在图2中找到.称呼的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要访问"RPC编码"样式的过时的soap Web服务.不幸的是,现代工具(例如JAX-WS)不支持此功能,因此我们需要使用Axis2库.

we need to access an obsolete soap webservice with "RPC Encoding" style. unfortunately this is not supported by modern tools, such as JAX-WS, so we need to use the Axis2 library.

我已经使用maven插件创建了存根,如以下示例所示:使用XmlBeans生成的类时出现错误

I've created the stubs with the maven plugin, as in this example: Error when using XmlBeans generated classes

但是,当我调用Web服务时,它抱怨缺少依赖项.我可以使用反复试验的方法来添加缺少的依赖项(每次我收到ClassNotFoundException时,我都会找到jar并将依赖项添加到pom文件中),但这不是一个好主意.

However, when I call the webservice, it complains about missing dependencies. I can add the missing dependencies using a trial and error approach (every time that I get a ClassNotFoundException, I find out the jar and I add the dependency in the pom file), but that's not a very good idea.

我查看了Axis2文档,但没有找到有关简单肥皂调用所需依赖项的信息.我怎么知道我需要的最小依赖集是什么?

I looked at the Axis2 documentation, but I didn't find information about the dependencies needed for a simple soap call. How can I know what are the minimum set of dependencies that I need in my case?

推荐答案

使用 MAVEN ,它将自动解决您的依赖关系以优化的方式.将以下内容添加到您的pom.xml

USE MAVEN , that will automatically resolves your dependencies in optimized manner. add following to your pom.xml

<dependencies>
    <dependency>
        <groupId>org.apache.axis2</groupId>
        <artifactId>axis2</artifactId>
        <version>1.5.1</version>
    </dependency>
</dependencies>

这篇关于用于简单肥皂"rpc编码"的Axis2依赖关系可以在图2中找到.称呼的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆