使用 axistools-maven-plugin 时禁用附件支持
我在许多项目中使用了 1.4 版本中的 Maven 插件 axistools-maven-plugin 来从 wsdl 构建 Web 服务客户端。我总是收到来自 wsdl2java 的错误消息:
15.07.2011 08:47:02 org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
除非正确生成类,否则我只是想问是否有人遇到同样的问题并可能解决它。
这个问题的背景是我必须实现一个通过 SOAP WS 处理大文件传输的 Web 服务接口。因此,也许使用附件比将内容转储到 byte[]
中是更好的选择,
感谢您的评论和回答。
I have used the maven plugin axistools-maven-plugin
in version 1.4 for many projects to build webservice clients from wsdl. And I always get the error message that is coming from wsdl2java:
15.07.2011 08:47:02 org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
Unless the classes are generated correctly, I just wanted to ask if anyone has the same problem and maybe solved it.
Background of this question is that I will have to implement a webservice interface that is handling the transfer of big files via SOAP WS. So maybe using attachments would be a better choise than dumping the content into an byte[]
Thanks for your comments and answers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在拉入 javax.mail 依赖项。该错误消息指出您将无法发送邮件附件,因为您缺少 javax.activation 依赖项。
这不会影响您的 SOAP Web 服务。
You are pulling in the javax.mail dependency. The error message states that you will not be able to send mail attachments since you are missing the javax.activation dependency.
This wont influence your SOAP webservice.