使用axistools-maven-plugin时,附件支持被禁用 [英] Attachment support is disabled when using axistools-maven-plugin

查看:313
本文介绍了使用axistools-maven-plugin时,附件支持被禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在1.4版中使用了maven插件axistools-maven-plugin来执行许多项目,以从wsdl构建Web服务客户端.而且我总是收到来自wsdl2java的错误消息:

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.

这个问题的背景是,我将必须实现一个Web服务接口,该接口正在处理通过SOAP WS进行的大文件传输.因此,与将内容转储到byte[]

感谢您的评论和回答.

推荐答案

您正在引入javax.mail依赖项.该错误消息指出,由于缺少javax.activation依赖项,您将无法发送邮件附件.

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.

这不会影响您的SOAP Web服务.

This wont influence your SOAP webservice.

这篇关于使用axistools-maven-plugin时,附件支持被禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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