REST Binding Component User's Guide

ProcedureTo Create an Application Variable

  1. On the NetBeans IDE Services window, expand Servers > GlassFish v2.1 > JBI > Binding Components.

  2. Right-click sun-rest-binding, and then select Properties.

    The Properties window appears.

  3. Click the ellipsis next to Application Variables.

    The Application Variables Editor appears.

  4. Click Add.

    A list of possible variable types appears.

  5. Select String, Number, Boolean, or Password, and then click OK.

    A new row appears in the application list.

  6. In the new row, enter a variable name and then do one of the following:

    • For a Boolean variable, select the check box if the variable value should be true; otherwise leave it deselected.

    • For all other variables types, enter the variable value.


      Note –

      If you created a password variable, the value you enter appears as asterisks.


      Figure shows the Application Variables Editor.

    The variable can now be reference from WSDL documents using a dollar sign and curly brackets to indicate the variable; for example, ${MyVariable}.