使用 axis1 的 Web 服务客户端的 Maven 依赖项

发布于 2024-11-16 02:12:49 字数 516 浏览 3 评论 0原文

在 Maven 项目中,我想使用 Eclipse 从工作 Web 服务 wsdl 生成的一些类。这些是建立所有 Web 服务客户端连接的代理类。

问题是找出我需要设置哪些 Maven 依赖项才能使其正常工作。

添加:

<dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-web-api</artifactId>
    <version>6.0</version>
</dependency>

没有 Eclipse 错误,但是当我运行它时,我得到:

方法中缺少代码属性,该属性不是本机或抽象的 类文件 javax/xml/rpc/ServiceException

我认为问题是我得到了 api,但没有得到 Web 服务的实现。哪些是 Maven 依赖项或者如何找到它们?

Inside a maven project, I would like to use some classes that were already generated by eclipse from a working web service wsdl. These are the proxy classes that make all the web service client connections.

The problem is to find out what are the maven dependecies I need to set in order to get it to work.

Adding:

<dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-web-api</artifactId>
    <version>6.0</version>
</dependency>

There are no eclipse errors, but when I run it I get:

Absent Code attribute in method that is not native or abstract in
class file javax/xml/rpc/ServiceException

I think the problem is I got the api but not the implementation of the web services. Which are the maven dependencies or how can I find them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

躲猫猫 2024-11-23 02:12:49

通过使用以下依赖项解决了该问题:

<dependency>
    <groupId>axis</groupId>
    <artifactId>axis</artifactId>
    <version>1.4</version>
</dependency>

<dependency>
    <groupId>org.apache.axis</groupId>
    <artifactId>axis-jaxrpc</artifactId>
    <version>1.4</version>
</dependency>

The problem got solved by using the following dependencies:

<dependency>
    <groupId>axis</groupId>
    <artifactId>axis</artifactId>
    <version>1.4</version>
</dependency>

<dependency>
    <groupId>org.apache.axis</groupId>
    <artifactId>axis-jaxrpc</artifactId>
    <version>1.4</version>
</dependency>
分開簡單 2024-11-23 02:12:49

轴依赖性被提到两次,我需要:

<dependency>
   <groupId>wsdl4j</groupId>
    <artifactId>wsdl4j</artifactId>
    <version>1.6.2</version>
</dependency>

Thee axis dependency is mentioned twice and I needed:

<dependency>
   <groupId>wsdl4j</groupId>
    <artifactId>wsdl4j</artifactId>
    <version>1.6.2</version>
</dependency>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文