NetBeans IDE supports Web services standards from both Java EE 6 and Java EE 5, including the JAX-WS 2.2, JAX-RS 1.1, and JAXB 2.2 web service standards. You can work with GlassFish Server Open Source Edition, Oracle Weblogic, Apache Tomcat, JBoss, and many more. The code completion functionality includes annotations that you can use in your web services.
The IDE assists you in creating (JAX-RS 1.1)
RESTful web services from JPA entity classes and patterns, or even
directly from a database. The code generated from JPA entities works on
top of the Spring framework. RESTful web services are available to wrap
entity beans and provide easy CRUD functionality.
For Java EE 6 RESTful web services, the IDE uses JAXB annotations in the entity classes and EJB session facades for the service classes. This removes the need for converter classes and generates simpler code.
You can also use facades for Java EE 5 RESTful web services. The IDE can generate EE 5 RESTful services with JPA Persistence API controller classes instead of generating converter classes.
Getting Started with RESTful Web Services
Use the Web Services wizards and Web Service Visual Designer
to create and develop web services from Java classes or WSDL files.
The IDE provides tools to work with Web Service annotations (Web Services Metadata for Java). Java classes annotated with @javax.jws.WebService annotation are automatically recognized as web services in a project. The IDE provides support for the JAX-WS 2.2 runtime in various features, such as the Visual Designer or Web Service Customization editor. With NetBeans IDE 7.2 extends the Visual Designer to Maven projects.
Convert SOAP based web services to RESTful service resources by using the action available in the web service node. Use the Web Service Customization editor to create asynchronous web service clients.
Getting Started with JAX-WS Web Services
The IDE also supports testing and building client
applications that access web services. Generate code for
client stubs from WADL. You can also generate RESTful Java clients in
Java Web and Java applications for services registered with NetBeans
IDE. NetBeans IDE comes with several widely used services already
registered, such as Flickr and Twitter.
Use the Services tab to easily create server-side mash-up applications, and add services from their web service descriptor files (WSDL or WADL). Drag and drop service operations into a POJO, Servlet, JSP, JSF, or PHP page, and the IDE will generate the access code.
Creating RESTful Service Clients in NetBeans Modules
Developing JAX-WS Web Service Clients
Access Web Services
Mobile Web Services