Oracle® Real-Time Decisions Platform Developer's Guide Version 3.0.0.1 Part Number E13854-02 |
|
|
View PDF |
Real-Time Decision Server Integration Points are available through a Zero Client approach. Integration Points on a deployed Inline Service are exposed through a Web services definition.
The ability to invoke and asynchronously invoke a deployed Integration Point is exposed as a Web service by Real-Time Decision Server. The definition of these operations are available in a WSDL file, located at:
RTD_HOME
\deploy\DecisionService\DecisionService.wsdl
The WSDL file defines all complex types and operations available.
Some slight structural changes were introduced in Oracle RTD Version 2.2 to bring the Decision Service up to the WS-I Basic level of compliance. The previous version of the WSDL file is named:
RTD_HOME
\deploy\DecisionService\DecisionServiceLegacy.wsdl
Although implementors should develop new clients using the new WSDL, the server still understands the protocol defined by DecisionServiceLegacy.wsdl
, and existing clients should experience no loss of functionality.
The instructions in this chapter detail how to use Sun's NetBeans IDE to create a Java WSDL Web service client using the RTD DecisionService WSDL file. The code content for the Web service project main class is also provided.
This chapter contains the following topics:
Section 10.2, "Creating a New NetBeans Java Application Project"
Section 10.5, "Adding the Provided Java Code and Testing the Client"
You must perform the following tasks first before you can work with the Web Service Client:
Download the NetBeans IDE (Java Bundle) from http://www.netbeans.org/downloads/index.html
.
Install and start the NetBeans IDE.
Locate the Oracle RTD DecisionService.wsdl
file and Java project main content file. These files can be located in an Oracle RTD installation at the following location:
RTD_HOME
\OracleBI\RTD\client\Client Examples\Web Service Client Example\DecisionService.wsdl
RTD_HOME
\OracleBI\RTD\client\Client Examples\Web Service Client Example\main-content.txt
RTD_HOME
\deploy\DecisionService\DecisionService.wsdl
The WSDL file defines all complex types and operations available.
Some slight structural changes were introduced in Oracle RTD Version 2.2 to bring the Decision Service up to the WS-I Basic level of compliance. The previous version of the WSDL file is named:
RTD_HOME
\deploy\DecisionService\DecisionServiceLegacy.wsdl
Although implementors should develop new clients using the new WSDL, the server still understands the protocol defined by DecisionServiceLegacy.wsdl
, and existing clients should experience no loss of functionality.
To create a new NetBeans Java application project, perform the following steps:
In the top menu, select File > New Project.
In the New Project dialog under Categories, select Java.
Under the Projects section of the dialog, select Java Application.
Click Next.
Name the Project, and click Finish.
To install the JAX-RPC Web services plug-in, perform the following steps:
In the top menu, select Tools > Plugins > Available Plugins.
In the Plugins dialog, click the Available Plugins tab.
Check the JAX-RPC Web Services plug-in check-box and click Install. Install the plug-in.
To create an Oracle RTD Web Service Client, perform the following steps:
In the Projects explorer, right-click your project and select New > Web Services Client...
In the New Web Service Client dialog, select the Local File radio button.
Click the Browse... button next to Local File:
Locate the file DecisionService.wsdl
in the RTD installation.
Example: C:\OracleBI\RTD\client\Client Examples\Web Service Client Example\DecisionService.wsdl
For Client Style, select JAX-RPC Style.
For Package, select your project package.
Click Finish.
To add the provided Java code and to test the client, perform the following steps:
In the Projects explorer, locate the generated Main.java
file and open it.
It should be under PROJECT_NAME
> Source Packages >
PROJECT_NAME
> Main.java
.
In the main() method, add the code content in the file main-content.txt
and save Main.java
.
Note:
Additional exceptions handling code may be required for the project to compile and run properly.Select Run > Run Main Project from the top menu.
View the output in the Output tab at the bottom of the IDE.