2 Service Provider Reference Implementations

This chapter contains the following topics:

2.1 Published Business Service Reference Implementations

Service provider reference implementations include published business service reference implementations, which are examples of JD Edwards EnterpriseOne web services that are exposed for consumption by external systems. These reference implementations contain published business services and business services. When invoked by external systems, these web services call business services, which are JD Edwards EnterpriseOne objects that perform a specific business process.

With JD Edwards EnterpriseOne Tools Release 9.1 Update 2, reference implementation JPR01MO1 - RI_AddressBookMediaObjectManager is available for testing your development environment for media object operations. The media object published business service reference implementation is a JD Edwards EnterpriseOne web service that is exposed for consumption by external systems. When invoked by external systems, this web service calls business services, which are JD Edwards EnterpriseOne objects that perform the actual media object operation.

See Published Business Service: JPR01MO1 - RI_AddressBookMediaObjectManager (Release 9.1 Update 2) for information about this reference implementation.

You can use published business service reference implementations as a model for creating your own business services. In addition, you can run them to test the business services development environment.

2.1.1 Published Business Service Reference Implementation Components

The tables in this section describe the components of each published business service reference implementation. The last column in each table describes the implementation pattern along with a cross reference to the section in the JD Edwards EnterpriseOne Tools Business Services Development Methodology Guide that provides further details about the implementation pattern.

This section describes the components of these published business service reference implementations:

  • JPR01000 - RI_AddressBookManager

  • JPR01001 - RI_AddressBookTransactionManager

  • JPR01002 - RI_AddressBookStagingManager

  • JPR01020 - RI_CustomerManager

  • JPRCUST0 - RI_CustomABManager

  • JPRCUST1 - RI_CustomAddressBookManager

  • JPRCUST2 - RI_CustomAddressBookStagingManager

  • JPR01MO1 - RI_AddressBookMediaObjectManager (Release 9.1 Update 2)

2.1.2 Published Business Service: JPR01000 - RI_AddressBookManager

This table describes the components of JPR01000 - RI_AddressBookManager:

Note:

When you develop a business service, you need to test it as you develop it. For JPR01000 - RI_AddressBookManager, JD Edwards EnterpriseOne provides a test object that makes use of the functionality of the RI_AddressBookManager service. It is included in the reference implementation as an example of how a developer codes test objects. The JTR87010 test object is automatically delivered with JD Edwards EnterpriseOne and requires no additional configuration.
Business Service Method Description Implementation Pattern and Reference to Business Services Development Methodology Guide
JR010010 - RI_AddressBookProcessor addAddressBook Adds an address book record with phone number information. A business service calling a BSFN, utility, or another business service.

See:

Calling Business Functions.

Calling Other Business Services.

JR010010 - RI_AddressBookProcessor addAddressBookAndParent Adds an address book record with phone information and creates a parent record to demonstrate an explicit transaction. An explicit transaction with a manual connection.

See Using an Explicit Transaction.

JR010030 - RI_PhonesProcessor addPhones Adds phones from a collection of phone information. A business service that is not exposed publicly in a web service; it is used only by other business services.

See Calling Other Business Services.

JR010040 - RI_AddressBookQueryProcessor getAddressBook Queries the V0101XPI view and returns address book information based on data passed in. Query of "Select" database operation and auto commit transaction.

See:

Creating a Query Database Operation Business Service.

Understanding Transaction Processing.


2.1.3 Published Business Service: JPR01001 - RI_AddressBookTransactionManager

This table describes the components of JPR01001 - RI_AddressBookTransactionManager:

Business Service Method Description Implementation Pattern and Reference to Business Services Development Methodology Guide
JR010011 - RI_AddressBookTransactionProcessor addAddressBook Adds an address book record with phone number information. A business service calling a business function, utility, or another business service.

See:

Calling Business Functions.

Calling Other Business Services.

JR010011 - RI_AddressBookTransactionProcessor addAddressBookandBusinessUnit An explicit transaction business function and database operation.

See Using an Explicit Transaction.

no value
JR010011 - RI_AddressBookTransactionProcessor addAddressBookAndParent Adds an address book record with phone information and creates a parent record to demonstrate an explicit transaction. An explicit transaction business function.

See Using an Explicit Transaction.

JR010040 - RI_AddressBookQueryProcessor getAddressBook Queries the V0101XPI view and returns address book information based on data passed in. Select database operation and auto commit transaction.

See:

Creating a Query Database Operation Business Service.

Understanding Transaction Processing.


2.1.4 Published Business Service: JPR01002 - RI_AddressBookStagingManager

This table describes the components of JPR01002 - RI_AddressBookStagingManager:

Business Service Method Description Implementation Pattern and Reference to Business Services Development Methodology Guide
JR010050 - RI_AddressBookStagingProcessor insertAddressBookStaging Inserts records into the Address Book Z table F0101Z2 Insert database operation.

See Creating an Insert Database Operation Business Service.

JR010050 - RI_AddressBookStagingProcessor updateAddressBookStaging Updates records in the Address Book Z table F0101Z2 Update database operation.

See Creating an Update Database Operation Business Service.

JR010050 - RI_AddressBookStagingProcessor deleteAddressBookStaging Deletes record from the Address Book Z table F0101Z2 Delete database operation.

See Creating a Delete Database Operation Business Service.


2.1.5 Published Business Service: JPR01020 - RI_CustomerManager

This table describes the components of JPR01020 - RI_CustomerManager:

Business Service Method Description Implementation Pattern and Reference to Business Services Development Methodology Guide
JR010023 - RI_CustomerCreditQueryProcessor getCustomerCreditInfo Retrieves customer credit information based on input of customer number. A query performed by a business function.

See Value Object Overview.

JR010020 - RI_EntityProcessor (Utility) processEntity A re-useable business service.

See Calling Other Business Services.

no value

2.1.6 Published Business Service: JPRCUST0 - RI_CustomABManager

This published business service exposes this method:

customAddAddressBook

An example of a published business service calling another published business service or a customer's extension of a delivered RI_AddressBookManager published business service calling the addAddressBook method.

See "Customizing a Published Business Service" in the JD Edwards EnterpriseOne Tools Business Services Development Methodology Guide.

2.1.7 Published Business Service: JPRCUST1 - RI_CustomAddressBookManager

This published business service exposes this method:

callAddABInsertBU

An example of a published business service calling another published business service or a customer's extension of a delivered RI_AddressBookTransactionManager published business service calling the addAddressBookAndBusinessUnit method.

See "Customizing a Published Business Service" in the JD Edwards EnterpriseOne Tools Business Services Development Methodology Guide.

2.1.8 Published Business Service: JPRCUST2 - RI_CustomAddressBookStagingManager

This published business service exposes this method:

callInsertABStaging

An example of a published business service calling another published business service or a customer's extension of a delivered RI_AddressBookStagingManager published business service calling the insertAddressBookStaging method.

See "Customizing a Published Business Service" in the JD Edwards EnterpriseOne Tools Business Services Development Methodology Guide.

2.1.9 Published Business Service: JPR01MO1 - RI_AddressBookMediaObjectManager (Release 9.1 Update 2)

This table describes the components of JPR01MO1- RI_AddressBookMediaObjectManager:

Business Service Method Description Implementation Pattern and Reference to Business Services Development Methodology Guide
JR010MO1 addAddressBookMO Adds an address book record along with media objects. A business service calling a media object operation.

See Creating an Insert Media Object Operation Business Service.

JR010MO1 getAddressBookMO Retrieves an address book record along with any media objects. A business service calling a media object operation.

See Creating a Select Media Object Operation Business Service.

JR010MO1 deleteAddressBookMO Deletes media objects for an address book number. A business service calling a media object operation.

See Creating a Delete Media Object Call Business Service.


Prerequisites

These prerequisites enable you to download, install, and use reference implementation JPR01MO1:

Creating, Deploying, and Testing Reference Implementation JPR01MO1

You can use reference implementation JPR01MO1 as a model to create a custom published business service that uses media object operations. After you create your custom published business service, you deploy it to the JDeveloper 11g Integrated WebLogic Server for testing. You can verify that your business service server is working properly by testing the JPR01MO1 reference implementation in the JDeveloper 11g Integrated WebLogic Server.

See "Understanding MTOM-Based Media Object Web Services" in the JD Edwards EnterpriseOne Tools Business Services Development Guide for more information about creating, deploying, and testing media object web services.

2.2 Accessing Business Service Reference Implementations

You can access business service reference implementations through Object Management Workbench (OMW) in the JD Edwards EnterpriseOne Windows client.

Prere quisites

Install JDeveloper.

To access a business service reference implementation:

Access OMW.

  1. In OMW, create a project.

  2. Search for a reference implementation and then add it to your project.

  3. Select the reference implementation and then click the Design button.

  4. On the Business Function Design form, click the Design Tools tab.

  5. Click Invoke JDeveloper.

See "Working with Business Services" in the JD Edwards EnterpriseOne Tools Object Management Workbench Guide for more information.

2.3 BPEL Reference Implementations for Business Services Running on WebSphere Application Server

Oracle provides the following BPEL reference implementations to test that a JD Edwards EnterpriseOne business service running on the IBM WebSphere Application Server can be consumed by Oracle's BPEL PM:

BPELProcessForWebSphereAddABAndGetCustomerCredit

In addition, you can use the BPEL reference implementations as a template for creating a BPEL flow that calls a business service.

The BPEL reference implementations use these JD Edwards EnterpriseOne published business service reference implementations:

  • JPR01020: RI_CustomerManager

This reference implementation contains the getCustomreCredit method, which retrieves customer credit information based on input of customer number.

  • JPR01000: RI_AddressBookManager

This reference implementation contains the addAddressBook method, which adds an address book record with phone number information.

These reference implementations must be installed before you run a BPEL reference implementation. See Published Business Service Reference Implementations in this guide for more information.

2.3.1 Accessing the BPELProcessForAddABAndGetCustomerCredit Reference Implementation

The files that you need to install the BPEL reference implementation are in a Zip file located in this JD Edwards EnterpriseOne installation directory:

\\EnterpriseOneInstallDirectory\System\Classes\samples\BPEL

The Zip file includes a readme file that contains a list of prerequisites and provides instructions on how to install and run the reference implementation from the BPEL Admin Console.

Note:

You cannot run this reference implementation from Object Management Workbench in JD Edwards EnterpriseOne because it is not a JD Edwards EnterpriseOne object.

2.4 BPEL Reference Implementations for Business Services Running on a WebLogic Server

Oracle provides the following BPEL reference implementations to test that a JD Edwards EnterpriseOne business service running on the Oracle WebLogic Server can be consumed by Oracle's BPEL PM:

BPELForWeblogicGetCustomerCreditInfo

In addition, you can use the BPEL reference implementations as a template for creating a BPEL flow that calls a business service.

The BPEL reference implementation use this JD Edwards EnterpriseOne published business service reference implementation:

JPR01020: RI_CustomerManager

This reference implementation contains the getCustomerCredit method, which retrieves customer credit information based on input of customer number.

This reference implementations must be installed before you run a BPEL reference implementation. See Published Business Service Reference Implementations in this guide for more information.

2.4.1 Accessing the BPELForWeblogicGetCustomerCreditInfo Reference Implementation

The files that you need to install the BPEL reference implementation are in a Zip file located in this JD Edwards EnterpriseOne installation directory:

\\EnterpriseOneInstallDirectory\System\Classes\samples\BPEL11g

The Zip file includes a readme file that contains a list of prerequisites and provides instructions on how to install and run the reference implementation from the BPEL Admin Console.

2.5 AddressBookStagingESBReference Implementation

The AddressBookStagingESB reference implementation is an example of an ESB flow that calls a business service in JD Edwards EnterpriseOne. You can use this ESB reference implementation to test that a JD Edwards EnterpriseOne business service can be consumed by Oracle's ESB. In addition, you can use this reference implementation as a template for creating an ESB flow that consumes a JD Edwards EnterpriseOne business service.

This reference implementation uses the methods in the JPR01002 business service that:

  • Insert address book records.

  • Update address book records.

  • Delete address book records.

2.5.1 Accessing the AddressBookStagingESB Reference Implementation

The files that you need to install and run this reference implementation are in a Zip file located in this JD Edwards EnterpriseOne installation directory:

\\EnterpriseOneInstallDirectory\System\Classes\samples\ESB

The Zip file includes a readme file that provides instructions on how to install and run the AddressBookStagingESB reference implementation.

Note:

You cannot run this reference implementation from Object Management Workbench in JD Edwards EnterpriseOne because it is not a JD Edwards EnterpriseOne object.

2.6 MediatorForWeblogicGetCustomerCreditInfo Reference Implementation

The MediatorForWeblogicGetCustomerCreditInfo reference implementation is an example of a Mediator flow that calls a business service in JD Edwards EnterpriseOne. You can use this Mediator reference implementation to test that a JD Edwards EnterpriseOne business service can be consumed by Oracle's Mediator component. In addition, you can use this reference implementation as a template for creating a Mediator flow that consumes a JD Edwards EnterpriseOne business service.

The Mediator reference implementation uses this JD Edwards EnterpriseOne published business service reference implementation:

JPR01020: RI_CustomerManager

This reference implementation contains the getCustomerCredit method, which retrieves customer credit information based on input of customer number.

2.6.1 Accessing the MediatorForWeblogicGetCustomerCreditInfo Reference Implementation

The files that you need to install and run this reference implementation are in a Zip file located in this JD Edwards EnterpriseOne installation directory:

\\EnterpriseOneInstallDirectory\System\Classes\samples\ESB11g

The Zip file includes a readme file that provides instructions on how to install and run the MediatorForWeblogicGetCustomerCreditInfo reference implementation.