4. Configuring Weblogic Policy on WebServices

After deploying WebServices, you must configure Weblogic Policy on WebServices.

To configure Weblogic Policy on WebServices

  1. Login to WebLogic application server console (http://hostname:port/console). The following window is displayed.

  2. Click ‘Deployments’ which is available on both side panels as marked above. The following window is displayed.

  3. Click on application name dbkls-xws-app on right side panel. The following window is displayed.

  4. Scroll down the page.

  5. Click ‘WebServices CSSAccountSearchRequestService’. The following window is displayed.

  6. Select ‘Testing’ tab and click ‘?WSDL’ link in Test Point column adjacent to the service name in the table.

  7. The following window is displayed. The WSDL will be accessible on http before applying WS-Policy.

  8. Navigate to Configuration > WS-Policy tab.

  9. Click ‘CSSAccountSearchRequestService’.
  10. In the below window, select ‘Weblogic’ and click ‘Next’.

  11. Select ‘policy:Wssp1.2-Https-UsernameToken-Plain.xml’ and click right arrow to move it to the selected policies list.

  12. Click ‘OK’.

  13. Browse to any folder to save Deployment Plan and click ‘OK’.

  14. Now you will be not able to access the WSDL on http port. Following message will be shown when you access with http URL.

Note

For SSL communication, the vendor servers seek public certificates. Hence, you need to download the certificates from vendor website and import into your java keystore. You then need to configure Weblogic to present the certificates to vendor servers for success­ful handshake.

  1. Select the environment on the left pane. The following window is displayed.

  2. Click ‘Servers’.

  3. Select the Server into which the WebServices are deployed.

  4. Select ‘Keystores’.

  5. Click ‘Change’ and select ‘Custom Identity and Custom trust’ from the drop-down list.

Specify

  1. Click Save. The WSDL can be accessed on https port as below. The WS-Policy will be shown in WSDL.

Apply WS-Policy policy:Wssp1.2-Https-UsernameToken-Plain.xml to the following WebServices.