Home

 

Configuring the client.policy using a service provider policy

To configure the client.policy using the service provider policy, do the following steps:

We have to remove the policy we applied in the last section, because we use WS-Policy to request the service provider's policy information:

In the Services view, right-click RAD75WebServiceClient: service/BankService and select Manage Policy Set Attachment.
Click Next.
Click Remove, and then click Finish.

Right-click RAD75WebServiceClient: service/BankService, select Manage Policy Set Attachment.

Click Use Provider Policy.

In the Configure Policy acquisition for Web Service Client page, select HTTP Get request targeted at <default WSDL URL>, and click OK (Figure | 8-53).

The Policy Acquisition field for the service changes to Acquire Provider Policy.



Figure 18-53 Use Provider Policy

Click Ignore for the warning, and then click Finish.

Test the Web service again. In the TCP/IP Monitor, you can see the client first acquires the WSDL through the HTTP GET (Figure | 8-54). The client.policy calculations for a service is performed at the first invocation on that service. Calculated policies are cached in the client for performance.

Figure 18-54 TCP/IP Monitor shows retrieve of WSDL

ibm.com/redbooks