3 Configure Weblogic Policy on WebServices

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

3.1 Configuring Weblogic Policy on WebServices

The following steps explains the procedure to configure Weblogic policy on WebServices.
  1. Login to WebLogic application server console (http://hostname:port/console).
    The following window is displayed.

    Figure 3-1 Configuring Weblogic Policy 1



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

    Figure 3-2 Configuring Weblogic Policy 2



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

    Figure 3-3 Configuring Weblogic Policy 3



  4. Scroll down the page.

    Figure 3-4 Configuring Weblogic Policy 4



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

    Figure 3-5 Configuring Weblogic Policy 5



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

    Figure 3-6 Configuring Weblogic Policy 6



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

    Figure 3-7 Configuring Weblogic Policy 7



  8. Navigate to Configuration > WS-Policy tab.

    Figure 3-8 Configuring Weblogic Policy 8



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

    Figure 3-9 Configuring Weblogic Policy 9



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

    Figure 3-10 Configuring Weblogic Policy 10



  12. Click OK.

    Figure 3-11 Configuring Weblogic Policy 11



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

    Figure 3-12 Configuring Weblogic Policy 12



  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.

    Figure 3-13 Configuring Weblogic Policy 13



    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 successful handshake.
  15. Select the environment on the left pane.
    The following window is displayed.

    Figure 3-14 Configuring Weblogic Policy 14



  16. Click Servers.

    Figure 3-15 Configuring Weblogic Policy 15



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

    Figure 3-16 Configuring Weblogic Policy 16



  18. Select Keystores.

    Figure 3-17 Configuring Weblogic Policy 17



  19. Click Change and select Custom Identity and Custom trust from the drop-down list.

    Figure 3-18 Configuring Weblogic Policy 18



    Specify

    • Custom Identity Keystore: Java keystore holding the certificates
    • Custom Trust Keystore: Java keystore holding the certificates
    • Custom Identity Keystore Type: jks
    • Custom Trust Keystore Type: jks
    • %Keystore Passpharses: keystore password
  20. Click Save. The WSDL can be accessed on https port as below. The WS-Policy will be shown in WSDL.

    Figure 3-19 Configuring Weblogic Policy 19



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

    • CSSAccountDetailsRequestService
    • CSSAccountPayOffQuoteRequestService
    • CSSAccountSearchRequestService
    • CSSPostTransactionsRequestService