Java Web 服务编程错误(附件支持被禁用。)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20508634/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 02:25:31  来源:igfitidea点击:

Web Services programming error (Attachment support is disabled. )

javaxmlweb-servicessoap

提问by

I'm new to Web Services, and follows a tutorial on how to set it up from my class website. However, I keep getting this warning, which causes my requests not to work. I'm somewhat at a loss, so I might need a lot of explaining on how to access certain information.

我是 Web 服务的新手,并遵循有关如何从我的班级网站进行设置的教程。但是,我不断收到此警告,这导致我的请求不起作用。我有点不知所措,所以我可能需要大量解释如何访问某些信息。

This is the warning I have been getting:

这是我收到的警告:

org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.

Obviously I have missing classes, but I have no idea where to download them or where to put them.

显然我缺少类,但我不知道在哪里下载它们或将它们放在哪里。

采纳答案by JJZ

You may need the following api packages: mail.jar and activation.jar Download javamail and jaf,decompress them to get mail.jar and activation.jar. Both of javamail and jaf can be found at java.sun.com. Reference .jars in your application.

您可能需要以下api包:mail.jar和activation.jar 下载javamail和jaf,解压得到mail.jar和activation.jar。javamail 和jaf 都可以在java.sun.com 上找到。在您的应用程序中引用 .jars。

You may also find this doc useful:

您可能还会发现此文档很有用:

Web Services Required Jars Download Instructions:

Web 服务所需的 Jars 下载说明:

http://www.eclipse.org/webtools/wst/components/ws/download_instructions_for_jars.html

http://www.eclipse.org/webtools/wst/components/ws/download_instructions_for_jars.html