Java 如何在 NetBeans 8.0 中启用“JAX-RPC?Web?服务”?插件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22972418/
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
How do I enable "JAX-RPC?Web?Services"?plugin in NetBeans 8.0
提问by Witbrock
I'm trying to build a WS client from an RPC (allegedly) encoded WSDL service at
我正在尝试从 RPC(据称)编码的 WSDL 服务构建一个 WS 客户端
https://www.fbo.gov/ws/fbo_api.php?wsdl
I'm using right click on Web Service Project, create New Web Service Client.
我使用右键单击 Web 服务项目,创建新的 Web 服务客户端。
The?wsdl?is?rpc?encoded.?To?process?this?wsdl?install?the?"JAX-RPC?Web?Services"?plugin.
?wsdl?is?rpc?encoded.?To?process?this?wsdl?install?the?"JAX-RPC?Web?Services"?插件。
I tried manually installing the following plugins
我尝试手动安装以下插件
modules/org-netbeans-modules-websvc-jaxrpc16.nbm
modules/org-netbeans-modules-websvc-jaxrpckit.nbm
modules/org-netbeans-modules-websvc-jaxrpc.nbm
modules/org-netbeans-modules-websvc-registry.nbm
But still no dice.
但仍然没有骰子。
回答by Gourav Singla
Actually, JAX-RPC is an old version of SOAP and which is overtaken by JAX-WS. That is why netbeans does not provide this plugin in default version.
实际上,JAX-RPC 是 SOAP 的旧版本,已被 JAX-WS 取代。这就是 netbeans 在默认版本中不提供此插件的原因。
You can install the plugin by adding another plugin directory.
您可以通过添加另一个插件目录来安装插件。
Go to Tools -> plugins -> Settings -> Add and set URL as http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz
转到工具 -> 插件 -> 设置 -> 添加并将 URL 设置为http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz
After adding this URL you will be able to see JAX-RPC plugin under plugin section and install that.
添加此 URL 后,您将能够在插件部分下看到 JAX-RPC 插件并安装它。
回答by hello_earth
by the way, another way to install the plugins is doing it manually (mentioned by the original poster as something that was already attempted). at the time of writing this, the NetBeans plugin/module files (*.nbm) can be downloaded from this location.
顺便说一句,安装插件的另一种方法是手动安装(原始海报提到已经尝试过的东西)。在撰写本文时,可以从该位置下载 NetBeans 插件/模块文件 (*.nbm) 。
this is also applicable to Apache NetBeans 9. (in fact, I tried this on NetBeans 9 and hope this works on 8.1/8.2 too). the needed modules are mentioned by the original poster, and in this here postfrom stackoverflow (the location of netbeans repository seems to change all the time) - myself, I downloaded all the org-netbeans-modules-websvc-*.nbm files, just to be on the safe side.
这也适用于 Apache NetBeans 9。(事实上,我在 NetBeans 9 上尝试过这个,希望这也适用于 8.1/8.2)。原始海报提到了所需的模块,在这篇来自 stackoverflow 的帖子中(netbeans 存储库的位置似乎一直在变化) - 我自己,我下载了所有 org-netbeans-modules-websvc-*.nbm 文件,只是为了安全起见。
Netbeans 9 loads properly. one more thing - i was dealing with a project made with netbeans 6.8 - i had to modify a line in project.properties (wscompile.classpath), as pointed out in this postthanx.
Netbeans 9 正确加载。还有一件事 - 我正在处理一个用 netbeans 6.8 制作的项目 - 我不得不修改 project.properties (wscompile.classpath) 中的一行,正如这篇文章thanx所指出的。
回答by kommradHomer
For anyone , having trouble with the plugins of JAX RPC on any version of netbeans (netbeans 11 in my case) and JAx-RPC , some good fellow prepared a great maven project for creating the necessary Classes and packages for a RPC WSDL
对于在任何版本的 netbeans(在我的例子中是 netbeans 11)和 JAx-RPC 上遇到 JAX RPC 插件问题的任何人,一些好人准备了一个很棒的 maven 项目来为 RPC WSDL 创建必要的类和包