Developing Webservices from wsdl using Netbeans
The following blog shows how you can easily create a Webservices
project in Glassfish v2 using Netbeans 6.0 from an existing wsdl.
Download Netbeans 6.0 from here
To Start
Select File->Create new Project->Web
style="width: 725px; height: 520px;">Click on finish
Next Right Click on WebServiceFromWsdl project and select new
WebService from wsdl
Here is the
href="http://weblogs.java.net/blog/bhaktimehta/archive/RMDemo.wsdl">wsdl
and its
href="http://weblogs.java.net/blog/bhaktimehta/archive/RMDemo.xsd">schema
for this blog
Here is how the screen looks like
width="728" height="649">
Click on finish
This is how the generated WebService Design tab looks like
src="http://weblogs.java.net/blog/bhaktimehta/archive/design tab.jpg"
width="900" height="630" />
You can implement the methods for the service by selecting the Source
tab
Right Click on the WebServiceFromWsdl project and call Run
You will see the project deployed in GF
You can verify by clicking on
http://localhost:8080/WebServiceFromWsdl/RMDemoService?wsdl
This is how the published wsdl will look like
src="http://weblogs.java.net/blog/bhaktimehta/archive/publishwsdl.jpg"
width="1665" height="797">
- Login or register to post comments
- Printer-friendly version
- bhaktimehta's blog
- 8880 reads






Comments
by endgame - 2008-07-02 07:38
Excellent tutoral, thank you!by mrmorris - 2008-07-08 07:47
Even with JAX-RPC plugin, this does not seem to work with NetBeans 6.1. I had to go back and use 6.0 to generate the service. Sadly 6.0 is now caused all kind of issues by itself, module dependencies doesn't seem to be maintained for 6.0 any longer. :(by sbolz - 2008-03-06 01:08
Thanks for this tutorial. For a week i wrote a similar tutorial here http://blog.jdevelop.eu/?p=45 , but i am using Tomcat 6 in my example. Switching to GlassFish is very easy with NetBeans 6. Now i know that my way was not the wrong one :-)