Chapter 8 Working with Web Services


Creating an EJB Web service for Sybase WorkSpace

Steps To create an EJB Web service:

  1. Select File→New and select Object Oriented Model in the Model Type list.
  2. Select Java in the language dropdown listbox and Class diagram in the First Diagram dropdown listbox.
  3. Click the Extended Model Definition tab and select Sybase EAServer 5.X in the Application Server page and Sybase WorkSpace in the IDE tabbed page.
  4. Click OK to create the OOM.
  5. Select Tools→Create Web Service Component.

    The Web Service Wizard appears.
  6. Type a name and a code for the component and click Next.
  7. Select Implementation in the Web Service Type dropdown listbox and select Axis EJB (Stateless Session Bean) in the Component Type dropdown listbox and click Next.
  8. Select a Web service implementation class and click Finish.

    The EJB Web service component is created together with the implementation class and the corresponding methods.
  9. Double-click the implementation class in the diagram and open the Operations page in the class property sheet.
  10. Double-click the WebMethod created by default. You can check that the Web Service Method check box is selected. You can rename the Web method according to your needs.
  11. Click the Implementation tab and type the method implementation, that is to say the implementation of the EJB Web service.
  12. Click OK in each of the dialog boxes.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.