Set the configuration attributes and click Apply. For ADF and WebCenter applications, restart the Web service application. You do

Administering Web Services 6-15 6. For ADF and WebCenter applications, restart the Web service application. You do not need to restart a SOA composite. For more information about these WLST commands and their arguments, see Web Services Custom WLST Commands in WebLogic Scripting Tool Command Reference. Enabling or Disabling a Web Service When a Web service application is deployed, the Web service endpoint is enabled by default if no errors are encountered. If there are errors, the Web service application is deployed, but the Web service endpoint is not enabled. You may need to temporarily make a Web service unavailable by disabling the Web service. For example, you may need to correct an invalid policy reference. When you disable a Web service, requests to the Web service will fail. To disable a Web service, you must make the endpoint on which the Web service receives requests unavailable. Using Fusion Middleware Control To disable an ADF or WebCenter Web service endpoint: 1. Navigate to the Web Services Summary page. 2. In the Web Service Details section of the page, click on the plus + for the Web service to display the Web service endpoints if they are not already displayed. 3. Click the name of the endpoint to navigate to the Web Service Endpoint page.

4. From the Web Service Endpoint page, click the Configuration tab.

5. In the Endpoint Enabled field, select Disabled from the menu, and click Apply.

6. Restart the application that uses the Web service. Note: If any configuration item contains an unrecognized property name or an invalid value, this set command is rejected and an error message is displayed. Note: You need to wait approximately 30 seconds or the equivalent of the configured Graceful Shutdown Timeout time between stopping and restarting the application. During this time, the server is allowing all global transactions to complete before shutting down the application. If you do not wait the configured Graceful Shutdown Timeout time, then the application will not be restarted appropriately and you will not be able to access it. To avoid waiting the graceful shutdown timeout period, you can restart the application twice. Note: The procedures described in this section apply to Oracle Infrastructure Web services only. 6-16 Oracle Fusion Middleware Security and Administrators Guide for Web Services Using WLST To disable a Web service endpoint port using WLST, use the setWebServiceConfiguration command. Set the enable property of the itemProperties argument to false to disable the endpoint and to true to enable it. The procedure for using this command is described in Using WLST in Configuring the Web Service Endpoint on page 6-12. For example, to disable the endpoint WsdlConcretePort, use the following command: wls:wls-domainserverConfig setWebServiceConfiguration wls-domainAdminServerjaxwsejb30ws,jaxwsejb,web,WsdlConcreteService, WsdlConcretePort,[enable,false] Please restart application to uptake the policy changes. For more information about this WLST command, see Web Services Custom WLST Commands in WebLogic Scripting Tool Command Reference. Enabling or Disabling RESTful Web Services You can enable or disable a Web services endpoint to accept messages in Representational State Transfer REST format. Using Fusion Middleware Control To enable or disable Web service styles: 1. Navigate to the Web Service Endpoint page, or the Service Home page for SOA composites, as described in Viewing the Details for a Web Service Endpoint on page 6-7.

2. Click the Configuration tab. For SOA composites, click the Properties tab.

3. In the REST Enabled field, select True from the menu to enable REST, or select

False to disable REST, and click Apply. Figure 6–3 indicates the location of the REST Enabled field for an ADF or WebCenter endpoint. Note: You need to wait approximately 30 seconds or the equivalent of the configured Graceful Shutdown Timeout time between stopping and restarting the application. During this time, the server is allowing all global transactions to complete before shutting down the application. If you do not wait the configured Graceful Shutdown Timeout time, then the application will not be restarted appropriately and you will not be able to access it. To avoid waiting the graceful shutdown timeout period, you can restart the application twice. Note: The procedures described in this section apply to Oracle Infrastructure Web services only. Administering Web Services 6-17 Figure 6–6 Enabling and Disabling RESTful Web Services

4. For ADF and WebCenter applications, restart the Web service application. You do

not need to restart a SOA composite. Using WLST To enable or disable a Web services endpoint port to accept messages in REST format using WLST, use the setWebServiceConfiguration command. Set the enableREST property of the itemProperties argument to true to enable REST and to false to disable it. The procedure for using this command is described in Using WLST in Configuring the Web Service Endpoint on page 6-12. For example, to enable the REST format for the WsdlConcretePort, use the following command: wls:wls-domainserverConfig setWebServiceConfiguration wls-domainAdminServerjaxwsejb30ws,jaxwsejb,web,WsdlConcreteService, WsdlConcretePort,[enableREST,true] Please restart application to uptake the policy changes. For more information about this WLST command, see Web Services Custom WLST Commands in WebLogic Scripting Tool Command Reference. Note: You need to wait approximately 30 seconds or the equivalent of the configured Graceful Shutdown Timeout time between stopping and restarting the application. During this time, the server is allowing all global transactions to complete before shutting down the application. If you do not wait the configured Graceful Shutdown Timeout time, then the application will not be restarted appropriately and you will not be able to access it. To avoid waiting the graceful shutdown timeout period, you can restart the application twice.