Table of Contents

Search

  1. Preface
  2. Part 1: Introduction
  3. Part 2: Samples and Examples
  4. Part 3: Tools and Utilities
  5. Part 4: SDK Resources

Sample Java and JavaScript Code for Business Entity Services

Sample Java and JavaScript Code for Business Entity Services

The resource kit contains sample Java code to make Enterprise Java Bean (EJB) business entity service calls. The resource kit also contains sample JavaScript code to make Representational State Transfer (REST) business entity service calls.
Each sample creates a person base object record, adds multiple child records, deletes one child record, and then deletes the person record and all child records.
The resource kit contains the following samples:
Java code to make EJB business entity service calls
  • Sample Java code based on standard Service Data Objects (SDO) classes. The sample is in the following file in the resource kit:
    C:\<
    MDM Hub installation directory
    >\hub\resourcekit\samples\COS\source\java\com\informatica\mdm\sample\cs\DynamicSDO.java
  • Sample Java code based on Java classes that the MDM Hub generates based on the business entity and business entity services configuration. The sample is in the following file in the resource kit:
    C:\<
    MDM Hub installation directory
    >\hub\resourcekit\samples\COS\source\java\com\informatica\mdm\sample\cs\GeneratedSDO.java
Javascript code to make REST business entity service calls
  • Sample Javascript code to run Representational State Transfer (REST) business entity service calls. The sample is in the following file in the resource kit:
    C:\<
    MDM Hub installation directory
    >\hub\resourcekit\samples\COS\source\resources\webapp\rest-api.html
To build the project, open the build.xml file located in
C:\<
MDM Hub installation directory
>\hub\resourcekit\samples\COS
. Copy all the files listed in
<target name="init">
to
C:\<
MDM Hub installation directory
>\hub\resourcekit\samples\COS\lib
.
For more information about configuring business entity services, see the
Multidomain MDM Business Entity Services Guide
.

0 COMMENTS

We’d like to hear from you!