Click the Targets tab, and select AdminServer and WLS_WSRP from the Servers Click Save.

Creating Java Portlets 6-49 Adding wsm-pm to the WSRP Managed Server You must add the wsm-pm to the WLS_WSRP managed server, by completing the following steps: 1. If you have not already done so, in the Change Center of the Administration Console, click Lock Edit.

2. In the Domain Structure tree, select Deployments.

The Summary of Deployments page is displayed. 3. Select wsm-pm from the Deployments table. 4. Click the Targets tab, and select wsm-pm from the Component table. 5. Click Change Targets, and then check AdminServer and WLS_WSRP from the Servers section.

6. Click Yes.

Deploying the Sample EAR File To deploy the EAR file, download the wsrp-samples.ear file, from Download the Oracle Portlet Container at http:www.oracle.comtechnologyproductsiasportalpdk.html and do the following:

1. Click Lock Edit.

2. In the Domain Structure tree, select Deployments.

The Summary of Deployments page is displayed. 3. Click Install. 4. Select wsrp-samples.ear from your directory, click Next. 5. Select Install this deployment as an application, and click Next. 6. Check WLS_WSRP from the Servers section, and click Next. 7. Enter a name for the deployment, and click Finish. 8. Click Activate Changes. 9. In the Summary of Deployments page, select the application you have deployed, and then click Start. 10. Now that you have deployed the sample EAR file, you need to test its WSDL URL by entering it into a browser. The WSDL URL is of the form: http:host:portportletappportlets?WSDL You should see a page similar to the one shown in Example 6–1 . Example 6–1 WSRP Producer WSDL Page ?xml version=1.0 encoding=UTF-8 ? definitions targetNamespace=urn:oasis:names:tc:wsrp:v1:wsdl xmlns=http:schemas.xmlsoap.orgwsdl xmlns:wsdl=http:schemas.xmlsoap.orgwsdl xmlns:soap=http:schemas.xmlsoap.orgwsdlsoap xmlns:bind=urn:oasis:names:tc:wsrp:v1:bind import namespace=urn:oasis:names:tc:wsrp:v1:bind location=http:stamf10.us.abc.com:8090wsrp-toolsportletswsrp1?WSDL=wsrp_v1_ bindings.wsdl service name=WSRP_v1_Service