Creating JAX-RPC Web service clients in WebSphere Commerce Developer
You can create a JAX-RPC Web service client with
WebSphere Commerce with the following high-level tasks: create a new
EJB project and session bean, generate the Web service client proxy
code into the project, customize the bean to make the Web service
requests, and create a helper class to simplify calling the new session
bean.
Procedure
- Start WebSphere Commerce Developer.
- Create the EJB project and client proxy:
- Right click .
- Click Next and accept the default value.
- Under Client-Side Environment Selection, change the Client type to EJB, enter the name of your EJB project and ensure WC is selected as the EAR project.
- Click Finish.
- Modify the default session bean to call the Web service:
- Create a helper class to simplify calling the session bean:
WebSphere Commerce commands can create the above helper class and call getClient().serviceName(). Security settings can be specified on the deployment descriptor of the EJB project that contains the new session bean.