How do I enable “JAX-RPC Web Services” plugin in NetBeans 8.0

为君一笑 提交于 2019-11-29 10:34:46

问题


I'm trying to build a WS client from an RPC (allegedly) encoded WSDL service at

https://www.fbo.gov/ws/fbo_api.php?wsdl

I'm using right click on Web Service Project, create New Web Service Client.

The wsdl is rpc encoded. To process this wsdl install the "JAX-RPC Web Services" plugin.

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.


回答1:


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.

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

After adding this URL you will be able to see JAX-RPC plugin under plugin section and install that.




回答2:


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.

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 post from 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.

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 post thanx.




回答3:


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

https://github.com/anomen-s/maven-jaxrpc-plugin



来源:https://stackoverflow.com/questions/22972418/how-do-i-enable-jax-rpc-web-services-plugin-in-netbeans-8-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!