Web Services for J2EE specification

 

+

Search Tips   |   Advanced Search

 

The Web services for J2EE specification defines the programming model and runtime architecture for implementing Web services based on the Java language. Another name for the Web Services for J2EE specification is the JSR-109. The specification includes open standards for developing and implementing Web services.

The Web Services for J2EE specification focuses on XML remote procedure call (RPC) and the Java language, including representing XML-based interface definitions in the Java language; Java language definitions in XML-based definition languages, such as SOAP, and assembling.

The J2EE technology can be integrated with Web services in a variety of ways. J2EE components, for example, JavaBeans and enterprise beans, can be exposed as Web services. These services can be accessed by clients written in Java code or by existing Web service clients that are not written in Java code. J2EE components can also act as Web service clients.

The Web Services for J2EE specification is the preferred platform for Web-based programming because it provides open standards allowing different types of languages, operating systems and software to communicate seamlessly through the Internet.

For a Java application to act as Web service client, a mapping between the WSDL file and the Java application must exist. The mapping is defined by the JAX-RPC specification.

You can use a Java component to implement a Web service by specifying the component interface and binding information in the WSDL file and designing the appserver infrastructure to accept the service request.

This entire process encompassed is based on the Web Services for J2EE specification.

The specification brings with it the webservices.xml deployment descriptor specifically for Web services. You are responsible for providing various elements to the deployment descriptor, including:

The EJB 2.1 specification specifies that for a Web service developed from a session bean, ejb-jar.xml must contain a service-endpoint element whose value matches that in webservices.xml.

Review the API documentation for a complete list of API's. You can also review several articles about the development of Web services at Web services: Resources for learning.


 

Related concepts

JAX-RPC

 

Related Reference

Web services: Resources for learning
Enterprise beans: Resources for learning