Java - J2EE - Web Services Implementation
Java Web services are implemented according to the JSR 109: Implementing Enterprise Web Services specification, which defines the standard Java EE runtime architecture for implementing Web services in Java (JWS).
The JSR 109 describes that a Java EE Web service is implemented by one of the following components:
- A Java class running in the Web container.
- A stateless session EJB running in the EJB container.
The code in the Java class or EJB implements the business logic of your Web service.
How to create a Web Service
Web services can be created using two methods:
- top-down development from a WSDL file.
- and bottom-up development from a Java bean or enterprise bean.
Java - Java Web Service (JWS) (Annotation Method)
Standards-based Java API for coding, assembling, and deploying Java Web services:
JAX-WS is a follow up to JAX-RPC (an older specification)
How Do I Choose Between JAX-WS and JAX-RPC?
The WS-Security specification lets you configure advanced features of Web services using WS-Policy files.
A WS-Policy file is an XML file that contains:
- or Web service reliable messaging-specific XML elements
that describe the security and reliable-messaging configuration, respectively.
For information about the WS-Policy specification, see Web Services Policy Framework (WS-Policy) 1.5 and 1.2.
The following Oracle IDE tools are available to build Web services:
- Oracle Enterprise Pack for Eclipse (OEPE)—Provides a collection of plug-ins to the Eclipse IDE platform that facilitate development of WebLogic Web services.
Or the following framework: