Administer > Manage WebSphere Commerce features > WebSphere Commerce integration with WebSphere Portal > Maintain the WebSphere Commerce portlet application
Upgrade an existing WebSphere Commerce component service in MVCPortlet
It can become necessary over time to upgrade the existing WebSphere Commerce component service in the MVCPortlet application.
When updating an existing WebSphere Commerce component service in the MVCPortlet application, be aware of the following components inside of the MVCPortlet application:
- Runtime libraries
- Client library JAR
- Data object JAR
- Deployment descriptor
- Component service WSDL
- Service handler
- Component service configuration
- get-data-config.xml
- SDO.properties
- wc-component-client.xml
Before you begin
Ensure that you have completed the following tasks when upgrading the Foundation runtime libraries in the MVCPortlet application:
- Setup the WebSphere Portal development environment.
- Update the Foundation runtime libraries:
- Right-click the MVCPortlet/WebContent/WEB-INF/lib directory in the Project Explorer.
- Select Import > General > File System.
- Click Next.
- Click Browse and navigate to the wc.modules/workspace/WC directory from the WebSphere Commerce installation.
- Select the Foundation runtime library JAR files:
- Foundation-Core.jar
- Foundation-DataObjects.jar
- Foundation-Samples.jar
- Foundation-Taglib.jar
- Click Finish.
- Import the Foundation schema definitions:
- Right-click the MVCPortlet/WebContent/WEB-INF directory in the Project Explorer.
- Select Import > General > File System.
- Click Next.
- Click Browse and navigate to the wc.modules/workspace/WebServicesRouter/WebContent directory from the WebSphere Commerce installation.
- Select the xsd directory.
- Click Finish.
- Verify the JAX-RPC Web service generation settings:
- Select Window > Preferences.
- Select Web Services.
- Select WebSphere.
- Select Select JAX-RPC Code Generation.
- Select the WSDL2Java tab.
- Select Disable data binding and use SOAP element.
- Click OK.
- Select Window > Preferences.
- Select Web Services.
- Select Scenario Defaults.
- Select Java Proxy for Client Type.
- Select Deploy Client in the slider.
- Click OK.
- Select Window > Preferences.
- Select Server Runtime.
- Select WebSphere Application Server v7 as the Server.
- Select IBM WebSphere JAX-RPC as the Web service runtime.
- Click OK.
Procedure
- Import the component service client library:
- Right-click the MVCPortlet/WebContent/WEB-INF/lib directory in the Project Explorer.
- Select Import > General > File System.
- Click Next.
- Click Browse and navigate to the wc.modules/workspace/WC directory of the WebSphere Commerce installation.
- Select the component service client library JAR files. For example: Catalog-Client.jar, CatalogData-Objects.jar.
- Click Finish.
- Click Yes to overwrite the existing version of the JAR file in the workspace.
- Configure the component service client library:
- Expand the MVCPortlet project to MVCPortlet/Java Resources: src/config.
- Right-click the directory with the component name, for example, com.ibm.commerce.catalog, and select Import > General > File System.
- Click Next.
- Click Browse and navigate to the xml/config/component_name directory of the WebSphere Commerce installation, where component_name is the name of the component service. For example: com.ibm.commerce.catalog.
- Select the component service SDO.properties client configuration file.
- Click Finish.
- Click Yes to overwrite the existing version of the file in the workspace.
- Configure the get-data JSTL tag library:
- Expand the MVCPortlet project to MVCPortlet/WebContent/WEB-INF/config.
- Right-click the directory with the component name, for example, com.ibm.commerce.catalog, and select Import > General > File System.
- Click Next.
- Click Browse and navigate to the Stores/WebContent/WEB-INF/config/component_name directory within the workspace, where component_name is the name of the component service. For example: com.ibm.commerce.catalog.
- Select the get-data-config.xml configuration files.
- Click Finish.
- Click Yes to overwrite the existing version of the file in the workspace.
- Enable the component service in the MVCPortlet application:
- Import the component service WSDL:
- Right-click MVCPortlet/WebContent/WEB-INF/wsdl.
- Select Import > General > File System.
- Click Next.
- Click Browse and navigate to the wc.modules/workspace/WebServicesRouter/WebContent/component-services/wsdl directory of the WebSphere Commerce installation.
- Select a component service WSDL file. For example: CatalogServices.wsdl.
- Click Finish.
- Click Yes to overwrite the existing version of the file in the workspace.
- Generate the JAX-RPC Web service:
- Right-click the newly imported WSDL file, for example, CatalogServices.wsdl, in the MVCPortlet/WebContent/WEB-INF/wsdl directory.
- Select Web Services.
- Select Generate Client and click Finish.
- Accept all warnings related to Automatic File Overwriting.