On the NetBeans IDE Services window, expand Servers > GlassFish v2.1 > JBI > Binding Components.
Right-click sun-rest-binding, and then select Properties.
The Properties window appears.
Click the ellipsis next to Application Variables.
The Application Variables Editor appears.
Click Add.
A list of possible variable types appears.
Select String, Number, Boolean, or Password, and then click OK.
A new row appears in the application list.
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.
If you created a password variable, the value you enter appears as asterisks.
The variable can now be reference from WSDL documents using a dollar sign and curly brackets to indicate the variable; for example, ${MyVariable}.