To protect passwords that would otherwise appear as clear text in your WSDL document, you can enter a Password application variable as a token. In the following example, a password application variable is created that uses the name SECRET and the password PROTECT.
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, select Password, and then click OK.
A new row appears in the variable list.
Enter SECRET as the name, and enter PROTECT as the value.
Because this is a password type, the characters appear as asterisks.
Use the application variable name ${SECRET} as the WSDL password attribute, using the dollar sign and curly braces as shown.