How to create webService using NetBeans IDE? - java

I am very much new to java.I need to create simple web service using NetBeans IDE. How to create it?

Depends on what kind of Web Service it is and what version of Netbeans you use. You can follow the Netbeans (6.9) documentation here http://netbeans.org/features/web/web-services.html

Related

UI for a java lib

I have a java library that generates a report given some simple input parameters. Currently its a console app. I wanted to create an extremely simple UI for this. What is the quickest way to achieve this ? Are there alternatives other than embedding this library in an application server and then creating a web server that will call it to get the results.
If you are using Eclipse, you can use SWT, WindowBuilder plugins.
http://www.eclipse.org/windowbuilder/
http://www.eclipse.org/swt/
Why a web server? Creating simple GUI with Java's swing is simple enough, and it'll allow you to use the library directly.
Another option is to write a simple GUI application that'll run the console application you already have. If you are using Windows I recommend using HTA for the GUI, and WScript.Shell.Run for running the console application. If you are using Linux, you might want to check out node-webkit and use the child_process module for running the console application.

add web service reference to eclipse

I'm building a android application and I need to consume a web service. I am using eclipse as my ide.
Does Eclipse have a nice easy way to add the web service to the project like the way visual studio does?
Is there a plugin?
I tried this http://wsdl2javawizard.sourceforge.net/ but I cant find "Import Web Reference" in my latest version of eclipse
Thanks for the help
World,
In android/java nothing exist like add service or add webservice reference facility as you have in visual studio.
So, you need to first do analysis of following to proceed further:
1) Either you are using soap based webservice? or restful api?
A: If you are using soapbased service that is developed in dotnet then you need to use any free library to consume it like: (ksoap) i used 1 year ago.
B: similary if you are using restfull with json (then Gson is the Google library which is very easy and helpful.
I hope i have given you the direction now you can explore these yourself :)

How to run Java RMI projects in Netbeans 7.0?

I am facing trouble to develop a RMI application in Netbeans 7.0. Is there anyway to start registry , create stubs and complete a simple project in netbeans? A simple description will work.
Have a look at this RMI tutorial, it'll show you how to work with RMI without having to create stubs.
Stub creation is not needed in recent versions of java, but there is an <rmic> ant task that you can add to your build.xml file. The registry can be started programatically, with LocateRegistry.createRegistry(port)

BPEL in netbeans 6.9.1 composing web services

I believe netbeans doesn't support BPEL.
Is there a workaround for it, or can you please suggest some other IDE, where I can compose web services together?
I have two web services, one which churns the data and gives the output as a JSON/string and the other web services which will have the input as the output of the previous webservice and visualize/graph the data.
Thanks
Netbeans supports BPEL. For that please download Glassfish ESB (Open ESB) which includes Netbeans IDE also. You can find Glassfish ESB from here.
Generally, BPEL support is consists of two components: an visual editor and a runtime. Since Netbeans is an IDE, it can provide the editor part but not the runtime. For the runtime part, OpenESB was used to be bundled with Netbeans and could execute BPEL 2.0 processes. I'm not entirely sure, but to me it seems that Oracle decided to drop BPEL support in favor of their own BPEL solution. OpenESB has been taken over by LogiCoy and I could not find any version of the Netbeans Enterprise Pack on the Netbeans web site. So I assume it is not available anymore.
Alternatives could be Eclipse BPEL designer (editor) and Apache ODE (runtime)
If you have only two Web services, BPEL is probably overkill for your scenario. Also, BPEL strictly relies on WSDL and XML Schema. If your services produce and consume JSON, BPEL cannot directly processes this data, instead it will consider it just as String data.
NetBeans itself doesn't support BPEL, however there is OpenESB Which is built on top of the NetBeans platform that does.

how to configure Flex with Java

I want to configure flex with Java.I have to create the project in which flex UI and JAVA serverside code.can any one tell me how to configure flex with Java using eclipse editor.
thanks in advance...............
Check Flex Builder (plugin and standalone) from Adobe.
http://www.adobe.com/products/flex/
Its comes as Standalone Eclipse based IDE or you can download Eclipse plugin.
You can also find good tutorials (also video tutorials) for same on same link.

Categories