Chapter 8 Working with Web Services
PowerDesigner supports the Web Services for J2EE specification that defines the programming model and runtime architecture for implementing Web services.
In Java, Web services may be implemented either through JAX-RPC endpoints or EJB stateless session bean components. Both of these implementations expose their Web methods through a service endpoint interface (SEI).
JAX-RPC endpoints are considered as Web components, they are represented as servlets in the OOM and are packaged into a WAR, while EJB stateless session beans are packaged into an EJB JAR. In both cases, WSDL files, and the required deployment descriptors should be included in the WEB-INF or META-INF directories. You can refer to chapters 5 and 7 of the Web Services for J2EE specification for more information.
If the Web service implementation type is Stateless Session Bean, PowerDesigner uses Web Services for J2EE specification for implementation.
Developing Stateless Session Bean as Web Service is similar to JAX-RPC: you use a Bean class instead of a normal Java class. As for JAX-RPC, it is limited to simple message formats.
For more information on JAX-RPC, see section Generating JAX-RPC Web services.
To generate Stateless Session Bean Web Service components:
If you have an application server that supports Web Services for J2EE, you can add a profile and use the deployment command to deploy the generated .JAR file directly into the server.
Copyright (C) 2006. Sybase Inc. All rights reserved. |