使用 axis1 的 Web 服务客户端的 Maven 依赖项
在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过使用以下依赖项解决了该问题:
The problem got solved by using the following dependencies:
轴依赖性被提到两次,我需要:
Thee axis dependency is mentioned twice and I needed: