FMW 12.1.3 – Invoking Enterprise Scheduler Service Web Services from SoapUI by Lucas Jellema
December 10, 2014 Leave a comment
The Fusion Middleware 12.1.3 platform contains the ESS or Enterprise Scheduler Service. This service can be used as asynchronous, schedule based job orchestrator. It can execute jobs that are Operating System jobs, java calls (local Java or EJB), PL/SQL calls, and Web Service calls (synchronous, asynchronous and one-way) including SOA composite, Service Bus and ADF BC web services.
Jobs and schedules can be defined from client applications
through a Java API or through the Enterprise Manager FMW Control user interface. Additionally, ESS exposes a web service through which (pre defined) jobs can be scheduled. This web service can be invoked from BPEL processes in SOA composites – or from any component that knows how to invoke a SOAP Web Service.
In this article I will briefly demonstrate how to invoke the ESS Web Service from SoapUI. I will not describe how to create the Job Definition – I will assume two pre existing Job Definitions: HelloWorld (of type PL/SQL job) and SendFlightUpdateNotification of type SOA composite based one way Web Service. Both Job Definitions contain application properties – parameters that can be set for every job instance and that are used in the job execution. When invoking the ESS Web Service to schedule a job, values for these properties can be passed in.
There is one tricky aspect with ESS: jobs cannot be run as anonymous users. So if ESS does not know who makes the request for scheduling a job, it will not perform the request. It returns an error such as
oracle.as.scheduler.RuntimeServiceAccessControlException: ESS-02002 User anonymous does not have sufficient privilege to perform operation submitRequest JobDefinition://oracle/apps/ess/custom/saibot/SendFlightUpdateNotification.
To ensure we do not run into this problem, we have to attach a WSM security policy to the ESS Web Service and pass a WS Security Header with valid username and password in our request. Then the job request is made in the context of a validated user and this problem goes away.
The steps to go through: Read the complete article here.
For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.
Blog
Twitter
LinkedIn
Facebook
Wiki



Simon Haslam
jeqo @jeqo89
Rami AL-Sahhar
Bruno Neves Alves
SOA Community
André Evensen
AVIO Consulting
Andreas Koop
A. Chatziantoniou
Danilo Schmiedel
Yogesh Sontakke 
Hendrik Gossens
José Rodrigues 
José Rodrigues 
Danilo Schmiedel
Carsten Wiesbaum
AVIO Consulting
OTNArchBeat
Red Mavericks
Big Files
Simone Geib
Jon petter hjulstad 
SOA Community
Andreas Koop
Red Expert Alliance
Robert van Mölken
A. Chatziantoniou
A. Chatziantoniou
Lonneke Dikmans 
SOA Community 
AVIO Consulting
leonsmiers
Oracle.IMC 
JDeveloper & ADF
Oracle Middleware
Misha Vaughan
gschmutz 

A. Chatziantoniou
Danilo Schmiedel
Rolando Carrasco
José Rodrigues
leonsmiers
Yogesh Sontakke
Ken Dohan 
Danilo Schmiedel
Debra Lilley
Debra Lilley
Matt Brasier 
Jan van Zoggel
Andrejus Baranovskis
Andrejus Baranovskis
luc bors
JDeveloper & ADF
OTNArchBeat
Oracle BPM
Oracle BPM
Jan van Zoggel
Lucas Jellema
leonsmiers
Rajesh Kalra
OTNArchBeat
Luis Augusto Weir
Dain Hansen
Oracle BPM
Rolando Carrasco
Robert van Mölken
AMIS, Oracle & Java
Robert van Mölken
gschmutz
Torsten Winterberg 



