Chapter 34. Java-First Service Implementation
34.1. Java-First Overview
Service Endpoint Interface (SEI)
- Base type of the Web service implementation (server side)—you define the Web service by implementing the SEI.
- Proxy type (client side)—on the client side, you use the SEI to invoke operations on the client proxy object.
- Basis for generating the WSDL contract—in the Java-first approach, you generate the WSDL contract by converting the SEI to WSDL.
The CustomerService demonstration
CustomerServiceWeb service using the Java-first approach.
Figure 34.1. Building a Java-First Web Service
Implementing and building the service
- Implement the SEI, which constitutes the basic definition of the Web service's interface.
- Annotate the SEI (you can use the annotations to influence the ultimate form of the generated WSDL contract).
- Implement any other requisite Java classes. In particular, implement the following:
- Any data types referenced by the SEI—for example, the
- The implementation of the SEI,
- Instantiate the Web service endpoint, by adding the appropriate code to a Spring XML file.
- Generate the WSDL contract using a Java-to-WSDL converter.