Eclipse Web Tools Platform 3.2 - New and Noteworthy

Back

Web Services

JAX-RS Facet and Enhancements


    Additional support for JAX-RS (RESTful Web Services) application development:
    • Support for JAX-RS 1.1 and Java EE 6
    • Shared Library support
    • Support for adding JAX-RS implementation libraries
    • A new JAX-RS property page

    Added JAX-RS project facet
    The JAX-RS facet has been added to support JAX-RS 1.0 and 1.1, and Java EE 6 (including support for Dynamic Web Module v2.5 and v3.0). Use version 1.1 of the facet for developing JAX-RS 1.1 applications, and version 1.0 for developing JAX-RS 1.0 applications.

    Shared library support added
    Adopters can now take advantage of Shared library support to install JAX-RS libraries when the Shared Library option is selected. When Shared Library option is selected install of the JAX-RS libraries is delegated to the adopter. For details see org.eclipse.jst.ws.jaxrs.core.jaxrsSharedLibrarySupport.

    Adopters can contribute their own libraries
    Adopters can now contribute a JAX-RS Implementation Library Type to the JAX-RS Capabilities page. For details see extension point org.eclipse.jst.common.project.facet.core.libraryProviders and use org.eclipse.jst.ws.jaxrs.core.internal.project.facet.JAXRSSharedLibraryProviderInstallOperationConfig.

    Properties page for JAX-RS-enabled projects
    A new property page is available for projects that have the JAX-RS facet. Changes can be made to the Library configuration (Deploy vs. Shared Library). Changes to the Library Type is now done using the property page instead of the classpath container wizard used in WTP 3.0. Servlet information can also be changed.

JAX-WS CNF Content Extensions

    Common Navigator Framework Content Extensions for JAX-WS Nodes.

    jaxws nodes

    A "JAX-WS Web Services" node in the Project Explorer view which contains all JSR-181 web services, their service endpoint interfaces, the web service operations and their parameters. Editing of the nodes is provided through the standard properties view.


JAXB Single Member and Marker Annotation Support

    jaxb annotations

    The Annotation Properties view now supports the creation and editing of JAXB 2.1 Single Member and Marker Annotations. The view displays the applicable JAXB annotations for a selected Java element in the Java Editor.


Apache CXF Web Service creation using ANT tasks

    ANT Files

    ant files

    Create Web services with the Apache CXF runtime without using the WTP Web services wizard. Create Ant tasks that can be run from within the Eclipse IDE or from the command line. Supports all scenarios currently available in the WTP Web services wizards: Bottom up, top down, and client.


JAX-WS Handler Support

    JAX-WS Handlers.

    jaxws handlers

    Wizard based support for creating logical and protocol JAX-WS handlers. JAX-WS handlers are message interceptors that may be used to carry out additional processing on inbound and outbound messages. Protocol handlers are specific to a protocol (e.g. SOAP) and they may access or change protocol specific aspects of a message while logical handlers are protocol agnostic and may only act on the message payload.


Support for multiple CXF installations

    cxf runtimes

    Configure multiple CXF runtimes in the CXF preferences. The default CXF runtime will be added to the build path of a project as part of the CXF facet install. Change the CXF runtime version on a projects build path using the CXF 2.x Settings properties page available from the projects context menu.


JAX-WS Handler Chain Configuration

    configure handlers

    The 'New JAX-WS Handler' wizard now offers the option of configuring the positions of logical and protocol handlers in the handler chain file. The handler chain may also be configured by selecting a context menu action on the JAX-WS Web Services nodes in the Project Explorer.


WSDL

Abstract / concrete WSDL definitions

    A WSDL definition file can contain abstract components, such as types, messages, port types, and concrete components such as bindings and services.

    You can now specify in the WSDL Preferences page whether the New WSDL wizard generates an all in one WSDL file, which is the default, or generates abstract and concrete definitions in separate WSDL files. The concrete WSDL definition file imports the abstract components declared in the abstract WSDL definition file. You can also configure the target namespace, prefix and file suffix for the abstract definition file.



    WSDL Preferences


Up

WTP Logo Banner