Darrell Hawley: Home Page

Wednesday, May 24, 2006

WSE: Configuring the Client

On to configuration! To configure the client, right click on the project and select the "WSE Settings 3.0" option at the bottom of the context menu. You should get a dialog that looks like Figure 1. Make sure that Web Service Enhancements is enabled (top checkbox). Click the Policy tab at the top to bring up a screen that looks like Figure 2. Check the "Enable Policy" checkbox at the top if it is not already.
Figure 1Figure 2

Click the "Add" button to add a new policy and you will be prompted for a policy name. Pick something easily remembered such as "MyPolicy". Once you have selected a name, the "WSE Security Settings Wizard" will start giving the screen shown in Figure 3. Click "Next" and you will get the "Authentication Settings" (Figure 4) view. Make sure that "Secure a Client Application" and "Username" are selected. You could select one of the other client authentication methods, though this series of posts will build entirely off the second option. Click "Next".

Figure 3Figure 4

The "Optionally provide Username and Password" screen (Figure 5) is pretty much self explanatory. If you want to hard code a username and password into the configuration, uncheck the box and specify. For our purposes, leave the "Specify Username Token in code" box checked and click "Next" to get to the "Message Protection" screen (Figure 6). There are a lot of interesting options here that are begging for experimentation, though we are going to use none of them now. Make sure the "Enable WS-Security 1.1" box is checked and in the "Protection Order" radio button group, select the "None (rely on transport protection)" option. Notice that the "Establish Secure Session" checkbox is now unchecked and disabled. Take this as a warning. Our first webservice transaction will NOT be secure. We're just experimenting with WSE right now.
Figure 5Figure 6

Clicking "Next" brings you to the summary screen which should look very much like the one in Figure 7 if you were following verbatim. Click "Finish" and the wizard is done.
Figure 7

Now you should see the screen shown in Figure 2. Click "OK" and you have a configured client.

Next up, configuring the service.

0 Comments:

Post a Comment

<< Home