It is now possible to expose the Datastage jobs you have created, as a web service. This is more in line with the SOA architecture that they are aiming for. However you simply cannot expose any job as a web service. Your jobs will have to be designed to interpret or send web service messages. The jobs can either be something that is always running or a job that runs to completion a single time. If your job is something that is meant to be triggered by web service requests then you should set that job to the multiple instance mode and select the enabled for service in the job properties window your job( as shown below).
The design of such a job would include the use of the WISD stage to communicate with the outside world. A simple design is shown below
The above job just calls a routine that will get the job report of a particular job and send it to the WISD output stage. The job is a multiple instance job and information services have been enabled for it in the job properties tab of the job.
Deployment
1) You will first have to log on to the IBM Information Server console with administrator privileges and create a new project of type ‘Information Services’. Before you can deploy your service, you will need to create a project and a information services application. If you already have a project that was created earlier then it’s enough that you import that project.
2) After you have created your project you will have to proceed to the next step of creating your application. Go the tab shown below(DEVELOP) tab and click the ‘Information Services Application’ option.
This will give you a new page. On the right hand side of the page you will find a sidebar with the heading ‘Tasks’. Select the ‘New’ option. This will give you another new page where you will have to enter the name of your application. Then click ‘Save’ to save your application.
3) The next step is to create a service. After you have saved your application, click on the edit button you see on the right hand bottom corner of the page. Then click on the ‘New’ button that is present on the left hand corner of the page
You must type a name for the service in the Service Name field. All of the other required fields will be containing the default values. You need not worry about that right now. You should then save your application.
4) As the next step you should attach a binding to your service. Select the binding option that is present on the left hand side of your page. Then select the option below
The settings for the binding will now appear on your screen. Leave the default values as it is.
5) Next step is to configure your Operation. Click the table shown below
In the Information Provider tab, press SELECT. You will then get a page which asks you for the type. You should select ‘Datastage and Quality’ stage. You will then be able to browse through the project and select your web service job. After you have chosen your job, click ‘OK’ and save your application and close it. Your information services configuration is complete
6) The next step is to deploy your service. Go ‘DEVELOP’ tab tab and click the ‘Information Services Application’ option. Your application will be listed. Select the ‘Deploy’ option present on the right hand side of the page. After you click that the wizard will take you to a new page. You will again have to click ‘Deploy’ which is now present at the bottom of the page. The status of the deployment can be observed by the status bar at the bottom of the page. The status of your application will change as shown below
You can view your deployed service in the OPERATE tab as shown below
The respective wsdl for this service can be found by doing the following
- Select your application to view the services within it.
- Select the service within your application.
- Click View Service in Catalog as shown below
- This will open up a new page. From the Select a View pane, select Bindings.
- Click on SOAP Over HTTP and then click ‘Open WSDL document’. Doing this will get your wsdl displayed on a new page