Chapter 4 Creating J2EE Applications for Sybase EAServer


Using a Stateless Session Bean as Web Service

To use a Stateless Session Bean as Web Service, you need to:

  1. Create an OOM model for Java.
  2. Add the EAServer 6 Extended Model Definition.
  3. Create a package.
  4. Open the diagram of the package.
  5. Use the Web Service wizard to create a Web Service.
  6. Select the Axis EJB implementation type.

    A default WebMethod will be created. To rename it, you can use the Operations tab of the Remote Interface properties.
  7. Implement one or several Web Service methods.
  8. Configure the Web Service component if necessary.
  9. Generate the Java code and additional files.

 


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