| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> |
| <html> |
| <head> |
| <title>NetBeans IDE - Web Services Development</title> |
| <meta http-equiv="content-language" content="en"> |
| <meta name="description" content="DESCRIPTION HERE"> |
| <link rel="stylesheet" type="text/css" href="../../features.css"> |
| <link rel="stylesheet" type="text/css" href="/images_www/js/colorbox/colorbox.css"> |
| </head> |
| <body> |
| <script type="text/javascript" src="/images_www/js/colorbox/jquery.colorbox-min.js"></script> |
| |
| <script type="text/javascript"> |
| $(document).ready(function(){ |
| $('a.cbox').colorbox({rel:'cbox',opacity:0.7}); |
| }); |
| </script> |
| <div style="margin:10px 20px 0px 0px;"> |
| <h1>Web Services Development Support</h1> |
| <p><a href="../../images_www/v7/screenshots/websvc.png"><img |
| src="../../images_www/v7/screenshots/websvc-cut.png" |
| alt="Web service development in the NetBeans IDE" width="650"><br/> |
| <span class="font-11"> |
| Click image for fullscreen preview</span></a></p> |
| <p class="intro"> |
| 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. |
| </p> |
| <div class="line"> </div> |
| |
| <!-- left text section start --> |
| <a name="o1"></a> |
| <span id="im1" class="overview-right"><a href="../../images_www/v7/3/features/rest-services-support.png" class="cbox" title="Create REST Web Service"><img src="../../images_www/v7/3/features/rest-services-support-cut.png" width="320" alt="" /></a></span> |
| <h2>RESTful Web Services</h2> |
| <p> |
| 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.<br/><br/> |
| 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.<br/><br/> |
| 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.<br/><br/> |
| <a href="../../kb/docs/websvc/rest.html" class="arr-link">Getting |
| Started with RESTful Web Services</a> |
| </p> |
| <div class="line"> </div> |
| <!-- left text section end --> |
| |
| <!-- right text section start --> |
| <a name="o2"></a> |
| <span class="overview-left" id="im2"><a href="../../images_www/v7/3/features/soap-designer.png" class="cbox" title="Fast & Smart Code Editing"><img src="../../images_www/v7/3/features/soap-designer-cut.png" width="320" alt="" /></a></span> |
| <h2>SOAP-based Web Services</h2> |
| <p> |
| Use the Web Services wizards and Web Service Visual Designer |
| to create and develop web services from Java classes or WSDL files.<br/><br/> |
| The IDE provides tools to work with Web Service annotations (<a |
| href="http://jcp.org/en/jsr/detail?id=181">Web Services Metadata for |
| Java</a>). Java classes annotated with @javax.jws.WebService annotation |
| are automatically recognized as web services in a project. The IDE |
| provides support for the <a href="https://jax-ws.dev.java.net">JAX-WS |
| 2.2</a> 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.<br/><br/> |
| 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.<br/><br/> |
| <a href="../../kb/docs/websvc/jax-ws.html" class="arr-link">Getting |
| Started with JAX-WS Web Services</a> |
| </p> |
| <div class="line"> </div> |
| <!-- right text section end --> |
| |
| <!-- left text section start --> |
| <a name="o3"></a> |
| <span id="im3" class="overview-right"><a href="../../images_www/v7/3/features/rest-client-gen.png" class="cbox" title="Generate REST Web Service Clients"><img src="../../images_www/v7/3/features/rest-client-gen-cut.png" width="320" alt="" /></a></span> |
| <h2>Web Service Clients</h2> |
| <p> |
| The IDE also supports testing and building client |
| applications that access web services. Generate code for |
| invoking web services (both RESTful and SOAP-based), such as JavaScript |
| 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. <br/><br/> |
| 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.<br/><br/> |
| <a href="../../kb/docs/websvc/client.html" class="arr-link">Developing |
| JAX-WS Web Service Clients</a> |
| </p> |
| <div class="line"> </div> |
| <!-- left text section end --> |
| |
| <table> |
| <tr> |
| <td class="valign-top"><h2>Access Web Services </h2></td> |
| <!--<td></td>--> |
| <td class="valign-top"><h2>WSIT Support</h2></td> |
| <!--<td></td>--> |
| <td class="valign-top"><h2>Mobile Web Services</h2></td> |
| </tr> |
| <tr> |
| <td class="valign-top" style="width:33%;padding-right:10px;"> |
| |
| <p> |
| <span class="overview-centre" id="im4"><img src="../../images_www/v7/3/features/web-services-manager-cut.png" width="200" alt="" /></span><br/> |
| Use the Web Service Manager to access popular RESTful Web |
| APIs provided by Google, Facebook, Yahoo, flickr, Amazon, Twitter and |
| many more. You can also access SOAP-based web services, e.g. |
| StrikeIron. |
| </p> |
| </td> |
| <!--<td> </td>--> |
| <td class="valign-top" style="width:33%;padding-right:10px;"> |
| |
| <p> |
| <span class="overview-centre" id="im4"><img src="../../images_www/v7/3/features/wsit-secure-cut.png" width="200" alt="" /></span><br/> |
| Web Service Interoperability Technologies (WSIT) are directly |
| available from the Web Services Designer. Use the <a |
| href="http://metro.dev.java.net/">Metro 2.0</a> (JAX-WS 2.2) support |
| in GlassFish to help you build interoperable, transactional, |
| reliable, and secure web services.<br/><br/> |
| <a href="../../kb/docs/websvc/wsit.html" class="arr-link">Advanced Web Services Interoperability</a> |
| </p> |
| </td> |
| <!--<td> </td>--> |
| <td class="valign-top" style="width:33%"> |
| |
| <p> |
| <span class="overview-centre" id="im4"><img src="../../images_www/v7/3/features/ws-mobile-cut.png" width="200" alt="" /></span><br/> |
| Write applications that access web services directly from a |
| JSR-172-enabled phone. Write code that uses the Wireless Connection |
| Bridge to access web services and other server-side data on any device |
| from MIDlets via servlets. |
| </p> |
| </td> |
| </tr> |
| </table> |
| <h2>See Also</h2> |
| <ul class="bigger"> |
| <li><a href="/community/releases/73/index.html">NetBeans IDE 7.3 Release Page</a> for a list of specific features in the latest stable release.</li> |
| <li>Get more details about features of the latest stable release on the <a href="http://wiki.netbeans.org/NewAndNoteworthyNB73">NetBeans IDE 7.3 New and Noteworthy page</a>.</li> |
| <li><a href="../../kb/trails/web.html">Web Services Learning Trail</a> for tutorials that will help you get started.</li> |
| </ul> |
| |
| </div> |
| </body> |
| </html> |