Steps to Publish a Controller Command as a Web Service.
- Identify the business logic that you want to expose as a Web service.
- Identify the controller command that represents this business logic. If it is not available, then create a new controller command. You can write new commands to call a collection of existing commands.
- Identify the mandatory and optional parameters that this command requires.
- Create a WSDL description for the Web service.
- Register the WSDL description.
- Write a JSP page to compose a response.
- Deploy the service. This includes the deployment of related files and resources. In case of a new command, you must deploy and register it in the WebSphere Commerce command registry.