Journalizing Tools Using Changed Data

8 Working with Data Services 8-1 8 Working with Data Services This chapter describes how to configure and generate data services with Oracle Data Integrator. Data services enable access to your data via a web service interface. It also allows access to the changes captured using Oracle Data Integrator’s Changed Data Capture feature. This chapter includes the following sections: ■ Section 8.1, Introduction to Data Services ■ Section 8.2, Setting Up Data Services ■ Section 8.3, Generating and Deploying Data Services

8.1 Introduction to Data Services

Data Services are specialized Web Services that provide access to data in datastores, and to changes captured for these datastores using Changed Data Capture. These Web Services are automatically generated by Oracle Data Integrator and deployed to a Web Services container in an application server. Data Services can be generated and deployed into: ■ A web service stack implementing the Java API for XML Web Services JAX-WS, such as Oracle WebLogic Server. ■ Apache Axis2 , installed in an application server.

8.2 Setting Up Data Services

Data services are deployed in a web service container an application server into which the web service stack is installed. This web service container must be declared in the topology in the form of a data server, attached to the Axis2 or JAX-WS technology. As data services are deployed in an application server, data sources must also be defined in the topology for accessing the data from this application server, and deployed or created in the application server. Setting up data services involves steps covered in the following sections: ■ Section 8.2.1, Configuring the Web Services Container WARNING: Axis2 is deprecated in this version. Customers using Axis2 should migrate their data services implementation by regenerating and re-deploying them in a JAX-WS container. 8-2 Oracle Fusion Middleware Developers Guide for Oracle Data Integrator ■ Section 8.2.2, Setting up the Data Sources ■ Section 8.2.3, Configuring the Model

8.2.1 Configuring the Web Services Container

You must declare the web service container as a data server in the topology, in order to let Oracle Data Integrator deploy Data Services into it. Web service containers declared in Oracle Data Integrator have one of three modes of deploying Web Services: ■ Copying files directly onto the server, if you have file access to the server. ■ Uploading onto the server by FTP. ■ Uploading with the Web Service Upload method with Axis2. The next steps in the configuration of the Web Services container depend on type of web service container and the deployment mode you choose to use. To configure a web service container:

1. In Topology Navigator expand the Technologies node in the Physical Architecture

panel.

2. Select the technology corresponding to the web server container: Axis2 or

JAX-WS . If you are using Oracle WebLogic Server or another JEE 5 compatible application server, use JAX-WS.

3. Right-click and select New Data Server

4. Fill in the following fields in the Definition tab:

■ Name : Name of the Data Server that will appear in Oracle Data Integrator. For naming data servers, it is recommended to use the following naming standard: TECHNOLOGY_NAME_SERVER_NAME. ■ Base URL for published services : Enter the base URL from which the web services will be available. For Axis2, it is http:host:HTTP Portaxis2services, and for Oracle WebLogic Server it is http:host:HTTP Port

5. Select one of the following Deployment options:

■ Save web services into directory : directory into which the web service will be created. It can be a network directory on the application server or a local directory if you plan to deploy the web services separately into the container. ■ Upload web services by FTP : select this option to upload the generated web service to the container. You must provide a FTP URL as well as a User name and Password for performing the upload operation. ■ Upload web services with Axis2 : select this option to upload the generated web service to the container using Axis2 web service upload mechanism. This option appears only for Axis2 containers. You must provide the Base URL for Note: Be careful not to mistake the web service containers and the servers containing the data. While both are declared as data servers in Oracle Data Integrator, the former do not contain any data. They are only used to publish Data Services.