The following figure shows how to develop Web Services starting from a provider:
Figure 2-5 Developing Web Services starting from a provider
- Creating a Provider Implementation Class
Create the Web Service Implementation Class as POJO.
Create Provider Implementation Classes according to the JAX-WS 2.2 and JAXB 2.2 specifications. For receiving messages of the SOAP 1.2 specifications, specify http://www.w3.org/2003/05/soap/bindings/HTTP/ in the javax.xml.ws.BindingType annotation.
For the support range of the JAX-WS 2.2specifications, see 19.1 Support range of the JAX-WS 2.2 specifications. For the support range of the JAXB 2.2 specifications, see Appendix B Support Range of the JAXB Specifications in the uCosminexus Application Server XML Processor User Guide.
- Executing the apt command (Compiling and error checking)
Execute the apt command for compiling the created Provider Implementation Classes and for error checking.
- Creating a DD
Create web.xml and application.xml. Code the Web Service-specific information in web.xml. For creating web.xml, see 3.4 Creating web.xml.
- Creating an EAR file
Create an EAR file containing the created file. For creating EAR files, see 3.5.3 Creating EAR files.
- Deploying and starting the EAR file
Deploy the created EAR file and start the file as a J2EE application (Web Services). For details on the import and start commands of J2EE applications, see cjimportapp (Importing J2EE applications) and cjstartapp (Starting J2EE applications) in the uCosminexus Application Server Command Reference Guide.
For the method to deploy (import) J2EE applications by using the management portal, see 12.3.3 Importing J2EE applications in the uCosminexus Application Server Management Portal User Guide.
For the method to start J2EE applications by using the management portal, see 12.3.1 Starting J2EE applications in the uCosminexus Application Server Management Portal User Guide.
For the examples of developing Web Services starting from a provider, see 9.3 Examples of developing Web Services (Starting from a provider and SAAJ).
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.