Part II. JAX-RPC Web Services

JEUS 7 Web services support JAX-WS web services as well as JAX-RPC web services for backward compatibility with JEUS 5 Web services. The previous chapters have discussed about several JAX-WS functionalities including creating and running JAX-WS web services and client programs. The chapters in this part will discuss about JAX-RPC web services supported by JEUS 7 for backward compatibility.

The difference between JAX-WS and JAX-RPC web services, in brief, is that JAXWS web service is a standard JavaEE 6 web service, while JAX-RPC web service is a standard J2EE 1.4 web service. JEUS 7 web services support JAX-WS web services as well as JAX-RPC web services for backward compatibility.

JAX-RPC web services require additional implementations of deployment descriptors and JAX-RPC mapping files in comparison to JAX-WS Web services. The following chapters describe in detail how JEUS 7 web services support JAX-RPC web services.

Table of Contents

20. Implementing JAX-RPC Web Services
20.1. Overview
20.2. Implementing a Web Service from a Java Class
20.2.1. Example
20.2.2. Implementation Principles of Java Web Services
20.3. Implementing a Web Service from an EJB
20.3.1. Example
20.3.2. Implementation Principles of EJB Web Services
20.4. Implementing Web Services from WSDL
20.5. Using SAAJ
21. Creating and Deploying JAX-RPC Web Services
21.1. Creating and Deploying Java Web Services
21.1.1. Configuring Service Configuration File
21.1.2. Creating WSDL and JAX-RPC Mapping Files
21.1.3. Configuring Web Service DD File
21.1.4. Packaging and Deploying
21.2. Creating and Deploying EJB Web Services
21.2.1. Configuring Web Service Configuration File
21.2.2. Creating WSDL File and JAX-RPC Mapping File
21.2.3. Configuring Web Services DD File
21.2.4. Packaging and Deploying
22. Invoking JAX-RPC Web Services
22.1. Invoking JEUS JAX-RPC Web Services (Java SE client)
22.1.1. Stub Client
22.1.2. DII Client
22.2. Invoking JAX-RPC Web Services (Java EE Client)
22.2.1. Java EE Client Programming Model
22.2.2. Java EE Client Programming Procedures
22.2.3. Creating a Java EE Client
23. Creating SOAP Message Handler of JAX-RPC Web Service
23.1. Using SAAJ
23.1.1. Creating a SOAP Message
23.1.2. Handling an SAAJ Document
23.1.3. Sending a SOAP Message through SAAJ
23.2. Creating SOAP Message Handlers
23.2.1. Creating a Message Handler
23.2.2. Designing a Message Handler and a Handler Chain
23.2.3. Creating a Handler Interface
23.2.4. Configuring Java EE Web Services DD File
23.2.5. Using a SOAP Message Handler from the Client
23.2.6. Example of File Exchanges Between Web Services and Clients
24. Creating JAX-RPC Web Service Configuration File
24.1. Creating JAX-RPC Web Service DD File
24.2. Creating a Web Service Mapping File
24.2.1. JAX-RPC Mapping File Contents
24.2.2. Configuring JAX-RPC Mapping File
25. JAX-RPC Web Service Data Type
25.1. Overview
25.2. Java and XML Type Mapping
25.2.1. Built-in Type Mapping
25.2.2. Arrays
25.2.3. User Defined Types: JAX-RPC Value Type
25.3. Using JAX-RPC Value Type
25.3.1. Creating a Web service that Uses JAX-RPC value type
25.3.2. Creating a Web Service Client that Uses JAX-RPC Value Type
25.4. Using Holder Classes
25.4.1. Built-in Holder Classes
25.4.2. Creating a Holder Class for User Defined Types
25.5. Exceptions and SOAP Faults
25.6. Mapping MIME Type to Data Handler Type
25.6.1. Using dataHandlerOnly Option in wsdl2java
25.7. Disabling Data Binding in Doc/Literal
25.7.1. Using noDataBinding Option in wsdl2java
26. JAX-RPC Web Service Security
26.1. Overview
26.2. Transport-Level Security
26.3. Message-Level Security
26.3.1. Applying Web Service Security
26.3.2. Web Service Security Architecture
26.3.3. Configuring JEUS Web Service Security
26.3.4. Creating a Password Callback Class
26.3.5. Example of Server-side JEUS Web Service Security
26.3.6. Example of Client-side JEUS Web Service Security
26.3.7. Creating JEUS Web Service Client Using Web Service Security API
26.4. Configuring Access Control
26.4.1. Configuring Access Control Security for Java Web Services
26.4.2. Configuring Access Control for EJB Web Services
26.4.3. Invoking Web Services Configured with Basic Authentication