You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

UNDER PROGRESS

 

Web Services 

Any job or job chain  in the JobScheduler can be exposed as a Web Service. The JobScheduler accept SOAP requests and send a standard SOAP response. 

It is important here to differentiate between the two types of Web Service requests: 

  • Asynchronous Web Service Requests

    The caller receives an acknowledgement that his request has been accepted by the JobScheduler and will be processed. Job execution is done asynchronously i.e. at a later run time. This is useful if batch jobs need execution time or should start at a predefined point in time. 

    No changes to job implementations are required with asynchronous Web Services processing. 

  • Synchronous Web Service Requests

    Should a request be received by the JobScheduler then it will be instantly processed. The caller receives the job execution result on the fly. Jobs must be developed to handle this kind of request.


Configure JobScheduler 

  • Update  scheduler.xml with a generic web service interface. Following configuration will enable the JobScheduler to accept variety of SOAP requests.

    scheduler.xml web service
    <http_server >			
    	<web_service
             debug = "no"
             request_xslt_stylesheet = "config/scheduler_soap_request.xslt"
             response_xslt_stylesheet = "config/scheduler_soap_response.xslt"
             name = "scheduler"
             url_path = "/scheduler" >
        </web_service>
    	
        <http_directory  path="${SCHEDULER_DATA}/" url_path="/scheduler_data/"/>
        <http_directory  path="${SCHEDULER_HOME}/" url_path="/scheduler_home/"/>
    </http_server>
  • After scheduler.xml update to make configuration effective, restart the JobScheduler service ( Windows ) or demon ( Linux ).
  • Now the JobScheduler is accessible via a SOAP web service. Web service  can be accessed with URL http://<jobscheduler-host>:<jobscheduler-port>/scheduler  e.g. http://localhost:4444/scheduler 

Setup Asynchronous Web service

TBD

 

  • No labels