This feature allows partners to register services as components in the REST component palette.

Component Palette Use cases

Click REST Web Services Component Palette, to see usecases

Component Palette Architecture

Partners can make their Web Services available for server mashups in Netbeans 6.0 REST Web Service tooling, using REST Component Palette Architecture. In order to do this, partners need to do the following.

<?xml version="1.0" encoding="UTF-8"?>

    <description key="AddressVerification40_Desc" 
        <icon url="org/netbeans/modules/websvc/rest/component/strikeiron/resources/strikeiron16.png" size="16"/>
        <icon url="org/netbeans/modules/websvc/rest/component/strikeiron/resources/strikeiron32.png" size="32"/>
    <service name="USAddressVerification">      
        <method name="VerifyAddressUSA" 
                serviceName="USAddressVerification" portName="USAddressVerificationSoap" 
            <!-- name value is wsdl:binding:/wsdl:operation[@name] -->
            <!-- serviceName value is wsdl:service[@name] -->
            <!-- portName value is wsdl:service/wsdl:port[@name] -->
                This operation corrects house numbers, street directions, street 
                names, street types, apartment numbers, P.O. boxes, street name 
                misspellings, validates street type extensions, standardizes city 
                names and state names, appends missing state abbreviation and 
                standardizes addresses according to postal authority rules.
  • Create a netbeans module (It will have the following structure)
  • Add the <component>.xml file to the module and put its location in the layer.xml file as shown below
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "">
    <folder name="RestComponents">
        <folder name="StrikeIron">
            <file name="AddressVerification40.xml" url="/org/netbeans/modules/websvc/rest/component/strikeiron/resources/AddressVerification40.xml" />
  • If needed I18n the names of category and component names that show on palette in the
  • Build an nbm file from this module
  • Make this module available through the netbeans update center.

Note: If NB users already installed partner modules, they will get overwritten during update based on the Module version. In other words modules will get updated only if y > x, where y and x are floating point numbers.

Click to download a partner module for StrikeIron Services

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