WadlDesigner

Wadl Designer

This feature in Netbeans enables users to design WADL using 2 approaches

  • Design WADL hierarchically (ie., add a resource first, then its methods...)
  • Design by entering service URL (See Cool features section)

Contents


Preparation:

Using NB 6.5:

  • JDK 1.6
  • Latest NetBeans 6.5
  • Run NB 6.5 IDE, then install WADL designer plugin from the NB Plugin manager
  • From the menu bar Tools->Plugins->Settings (See screenshots below), create a new update center entry name

'NB Dev UC', enter in the URL http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz

  • Press OK then switch to tab 'Available Plugins' tab, then click 'Reload Catalog' button to see WADL designer

and model modules.

  • Select both the modules and click 'Install' button. This will install the WADL designer.


http://wiki.netbeans.org/attach/WadlVisualDesigner/wadl_design_uc_for_65.png


http://wiki.netbeans.org/attach/WadlVisualDesigner/wadl_design_install_for_65.png

Using NB 7.0 dev builds:

  • JDK 1.6
  • Latest NetBeans 7.0 dev build
  • Run NB 7.0 IDE, then install the WADL designer plugin from the NB Plugin manager
  • From the menu bar Tools->Plugins-> (See below)


http://wiki.netbeans.org/attach/WadlVisualDesigner/wadl_designer_uc.png

1. How to create a new WADL

Open Netbeans IDE, then on the "Favorites" tab, create new file 'myservice.wadl'


http://wiki.netbeans.org/attach/WadlVisualDesigner/newfile.png

Enter file name


http://wiki.netbeans.org/attach/WadlVisualDesigner/enter_file.png

Wadl Designer with hierarchical view


http://wiki.netbeans.org/attach/WadlVisualDesigner/hierarchy.png

Add a new service to WADL


http://wiki.netbeans.org/attach/WadlVisualDesigner/add_service.png

Add a new method to WADL


http://wiki.netbeans.org/attach/WadlVisualDesigner/add_method.png

Enter method name


http://wiki.netbeans.org/attach/WadlVisualDesigner/enter_method_name.png

Add a param to the method's request


http://wiki.netbeans.org/attach/WadlVisualDesigner/add_param.png

Change parameter name


http://wiki.netbeans.org/attach/WadlVisualDesigner/change_param_name.png

Add a fault to the method's response


http://wiki.netbeans.org/attach/WadlVisualDesigner/add_fault.png

Select fault


http://wiki.netbeans.org/attach/WadlVisualDesigner/select_fault.png

Fault shown with its contents


http://wiki.netbeans.org/attach/WadlVisualDesigner/fault.png

Switch to the WADL Designer with list view by clicking the top-leftmost button


http://wiki.netbeans.org/attach/WadlVisualDesigner/list_view.png

Check the new fault that we created in hierarchical view


http://wiki.netbeans.org/attach/WadlVisualDesigner/check_fault.png

Switch to the source view by clicking 'Source' tab, then click validate icon to validate the file


http://wiki.netbeans.org/attach/WadlVisualDesigner/validate.png

Validation error with same id name 'newMethod'


http://wiki.netbeans.org/attach/WadlVisualDesigner/validate_error.png

Change one of the method id to 'newMethod1' and validate


http://wiki.netbeans.org/attach/WadlVisualDesigner/corrected_error.png

Check the method name in list view


http://wiki.netbeans.org/attach/WadlVisualDesigner/check_method.png

2. Cool features

Add service and its method(GET)/params by entering service url'


http://wiki.netbeans.org/attach/WadlVisualDesigner/add_service_by_url.png

New service with a default method and three parameters created


http://wiki.netbeans.org/attach/WadlVisualDesigner/service_added_by_url.png

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo