4. Configuring Weblogic Policy on WebServices
After deploying WebServices, you must configure Weblogic Policy on WebServices.
To configure Weblogic Policy on WebServices
- Login to WebLogic application server console (http://hostname:port/console). The following window is displayed.
![](../screens/ConfigWS1.jpg)
- Click ‘Deployments’ which is available on both side panels as marked above. The following window is displayed.
![](../screens/ConfigWS2.jpg)
- Click on application name dbkls-xws-app on right side panel. The following window is displayed.
![](../screens/ConfigWS3.jpg)
- Scroll down the page.
![](../screens/ConfigWS4.jpg)
- Click ‘WebServices CSSAccountSearchRequestService’. The following window is displayed.
![](../screens/ConfigWS4.1.jpg)
- Select ‘Testing’ tab and click ‘?WSDL’ link in Test Point column adjacent to the service name in the table.
![](../screens/ConfigWS4.2.jpg)
- The following window is displayed. The WSDL will be accessible on http before applying WS-Policy.
![](../screens/ConfigWS5.jpg)
- Navigate to Configuration > WS-Policy tab.
![](../screens/ConfigWS6.jpg)
- Click ‘CSSAccountSearchRequestService’.
- In the below window, select ‘Weblogic’ and click ‘Next’.
![](../screens/ConfigWS7.jpg)
- Select ‘policy:Wssp1.2-Https-UsernameToken-Plain.xml’ and click right arrow to move it to the selected policies list.
![](../screens/ConfigWS8.jpg)
- Click ‘OK’.
![](../screens/ConfigWS9.jpg)
- Browse to any folder to save Deployment Plan and click ‘OK’.
![](../screens/ConfigWS10.jpg)
- Now you will be not able to access the WSDL on http port. Following message will be shown when you access with http URL.
![](../screens/ConfigWS11.jpg)
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.
- Select the environment on the left pane. The following window is displayed.
![](../screens/WebServicesDeploy12.jpg)
- Click ‘Servers’.
![](../screens/WebServicesDeploy13.jpg)
- Select the Server into which the WebServices are deployed.
![](../screens/WebServicesDeploy14.jpg)
- Select ‘Keystores’.
![](../screens/WebServicesDeploy15.jpg)
- Click ‘Change’ and select ‘Custom Identity and Custom trust’ from the drop-down list.
![](../screens/WebServicesDeploy16.jpg)
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
- Click Save. The WSDL can be accessed on https port as below. The WS-Policy will be shown in WSDL.
![](../screens/ConfigWS5.jpg)
Apply WS-Policy policy:Wssp1.2-Https-UsernameToken-Plain.xml to the following WebServices.
- CSSAccountDetailsRequestService
- CSSAccountPayOffQuoteRequestService
- CSSAccountSearchRequestService
- CSSPostTransactionsRequestService