Compile and Deploy the Taleo Connect Client SOAP Wrapper
Compile the SOAP wrapper, and then deploy it to Oracle Java Cloud Service.
After it’s deployed, the SOAP wrapper handles requests sent from Oracle Integration Cloud. The SOAP wrapper then invokes the Taleo Connect Client, installed on the same host, and starts an export or import job depending on the parameters passed with the request.
About the SOAP Wrapper
The SOAP wrapper is a web service, written in Java, that triggers export and import jobs in Oracle Taleo Enterprise Cloud Service.
After downloading the SOAP wrapper, open the project in NetBeans. Then update the Java code to reference the location of the Taleo Connect Client installation on the Oracle Java Cloud Service host.
You deploy the web service with the WebLogic Server Administration Console for your Oracle Java Cloud Service service instance.
You can control access to this service by applying an Oracle Web Services Manager (OWSM) policy after deployment. The sample SOAP wrapper is not protected by an OWSM policy, but it is recommended.
Before You Begin with the SOAP Wrapper
Before you begin with the SOAP wrapper, install NetBeans and download the SOAP wrapper sample code.
-
Install the latest version of the NetBeans IDE (with the Java Platform, Enterprise Edition bundle).
-
Download the sample code for this solution.
-
Extract the contents of the archive file.
-
If your Oracle Java Cloud Service instance is deployed to Oracle Cloud Infrastructure Classic, you may need to enable access to the WebLogic Server Administration Console. Access to the console is enabled by default on instances deployed to Oracle Cloud Infrastructure.
Import the SOAP Wrapper NetBeans Project
Import the SOAP wrapper project into NetBeans, and resolve the library dependencies.
- In NetBeans, click Open Project.
- Go to the directory where you extracted the sample code archive. Drill down through the
java
andjcs
directories. Click the TCCClient project folder, and then click Open Project. - When the Project Problems dialog is displayed , click Resolve Problems.
- Select the commons-logging-1.2.jar line, and click Resolve.
- Go to the directory where you installed the Taleo Connect Client on Windows (for example,
C:\Taleo Connect Client
). Drill down through thelib
andendorsed
directories. Select the commons-logging-1.1.1.jar file, or the version of this library included with your Taleo Connect Client installation and click Open. - Select the log4j-1.2.17.jar line, and click Resolve.
- Go to the directory where you installed the Taleo Connect Client on Windows (for example,
C:\Taleo Connect Client
). Drill down through thelib
andendorsed
directories. Select the log4j-1.2.15.jar file, or the version of this library included with your Taleo Connect Client installation, and click Open.
Update the Java Code and Build the Project
Update the Java source to reference the location of the script that invokes the Taleo Connect Client on the Oracle Java Cloud Service host. Then, build the SOAP wrapper project.
- In NetBeans, open the tccClient.java file.
- Change the value of the
cmd
string in therunTccJoB
method to reference the location of theclient.sh
script that you created on the Oracle Java Cloud Service host:String cmd = "/home/tcc/tcc/scripts/client.sh " + strJobLocation;
- From the Projects tab, right-click the TCCClient project, and select Build.
Deploy an Application Using the WebLogic Server Administration Console
You can use the WebLogic Server Administration Console to deploy applications to an Oracle Java Cloud Service instance.
- Sign in to the web console.
- Find the name of the instance that you want to deploy an application to.
- Expand the Manage this instance menu, then select Open WebLogic Server Console.
- Sign in using the credentials that you specified when you created the Oracle Java Cloud Service instance.
- In the Change Center of the WebLogic Server Administration Console, click Lock & Edit if that button is enabled.
- Under Domain Structure, select Deployments.
- On the Deployments page, click Install.
- On the Install page, click the Upload your file(s) link. This link is in the text just above the Path field.
- In the Install Application Assistant, click Browse next to Deployment Archive, select the application you want to deploy, and click Next.
- Under Locate deployment to install and prepare for deployment, select the application if it isn’t already selected, and click Next.
- Under Choose installation type and scope, select application, and click Next.
- Under Select deployment targets, select the servers or clusters that you want to deploy the application to, and click Next.
- Review the configuration settings that you specified, and click Finish.
- In the Change Center, click Activate Changes.
Start an Application Using the WebLogic Server Administration Console
You must start the application to make it ready to accept requests.
Create a Security List
Create a security list to control traffic into and out of your service instance that’s deployed on Oracle Cloud Infrastructure.
Note:
This task applies only for Oracle Java Cloud Service instances deployed on Oracle Cloud Infrastructure. See Creating an Access Rule in Administering Oracle Java Cloud Service if your Oracle Java Cloud Service is deployed to Oracle Cloud Infrastructure Classic.