Oracle® Fusion Middleware Application Adapter for J.D. Edwards OneWorld User's Guide for Oracle WebLogic Server 11g Release 1 (11.1.1) Part Number E17058-01 |
|
|
View PDF |
This chapter contains the following examples:
The scenarios shown in this chapter require the following prerequisites.
Prerequisites
The following are installation and configuration requirements:
Oracle Application Adapter for J.D. Edwards OneWorld must be installed on Oracle WebLogic Server.
J.D. Edwards OneWorld must be configured for inbound and outbound processing.
The examples in this chapter present the configuration steps necessary for demonstrating service and event integration with J.D. Edwards OneWorld. Prior to using this material, you must be familiar with the following:
How to configure Oracle Application Adapter for J.D. Edwards OneWorld for services and events. For more information, see Chapter 2, "Configuring Oracle Application Adapter for J.D. Edwards OneWorld".
How to configure Oracle JDeveloper. For more information, see Chapter 4, "Integration With BPEL Service Components in the Oracle SOA Suite".
Overview of Mediator Integration
Mediator provides a comprehensive application integration framework. Oracle Application Adapter for J.D. Edwards OneWorld used with Mediator enables you to seamlessly integrate enterprise software, eliminating the need to write custom code. Functional modeling, as opposed to custom coding solutions, allows for software reuse and reduces the complexity and management challenges that arise over the software lifecycle. This integration model consists of two components--high-level integration logic and low-level platform services.
Adapter integration with Oracle WebLogic Server, Mediator is a two-step process:
Design Time: Oracle Application Adapter for J.D. Edwards OneWorld is configured in Application Explorer for services and events, as described in Chapter 2, "Configuring Oracle Application Adapter for J.D. Edwards OneWorld". Integration logic is modeled in iStudio. Metadata are stored in repositories.
Runtime: The underlying platform treats this metadata as run-time instructions to enable the communication between participating applications.
To configure a new Application Server connection in Oracle JDeveloper:
Open Oracle JDeveloper on your system.
From the menu bar, click View and select Application Server Navigator.
The Application Server tab is displayed.
Right-click Application Servers, and then select New Application Server.
The Create Application Server Connection Wizard is displayed.
Accept the default selection (Standalone Server) and click Next.
The Name and Type page is displayed.
Specify a new name for the Application Server connection and click Next.
The Authentication page is displayed.
Specify a valid user name (for example, weblogic) and a password (for example, welcome1) for your new connection.
Click Next.
The Configuration page is displayed.
Specify the Oracle WebLogic host name (for example, localhost), which is the machine IP where the process needs to deploy and Oracle WebLogic domain (for example, base_domain).
Click Next.
The Test page is displayed.
Click Test Connection.
Ensure that the test status is successful.
Click Next.
The Finish page is displayed.
Click Finish.
The new Application Server connection is listed in the left pane (Application Server tab), as shown in the following image.
The following example describes how to configure a Mediator outbound process to your J.D. Edwards OneWorld system, using a Mediator project in Oracle JDeveloper.
Prerequisites
Before you design a Mediator outbound process, you must generate the respective WSDL file using Application Explorer. See "Generating WSDL for Request/Response Service" for more information.
Perform the following steps to create a new SOA application for the outbound Mediator process:
Open Oracle JDeveloper on your system.
In the Application Navigator tab, click New Application.
The Create SOA Application wizard is displayed.
From the Application Template list, click SOA Application.
Enter name for the new SOA application (for example, JDE_Outbound_Mediator) and click Next.
The Name your project page is displayed.
Enter a project name (for example, GetEffectiveAddress_Invoke) and click Next.
The Configure SOA settings page is displayed.
From the Composite Template list, select Empty Composite and click Finish.
The new SOA application (JDE_Outbound_Mediator) and associated project (GetEffectiveAddress_Invoke) are added to the Application Navigator tab in the left pane.
This section describes how to define a Mediator outbound process, which consists of the following stages:
Configuring a Third Party Adapter Service Component
Configuring an Outbound Mediator Process Component
Configuring the Routing Rules
Configuring a Third Party Adapter Service Component
Perform the following steps to create a third party adapter service component:
Drag and drop the Third Party Adapter component from the Component Palette tab (Service Adapters section) to the External References pane.
The Create Third Party Adapter Service dialog is displayed.
Enter a name for the new third party adapter service.
Ensure that Reference is selected from the Type list (default).
Click the Find existing WSDLs icon, which is located to the right of the WSDL URL field.
The SOA Resource Browser dialog is displayed.
Browse and select an outbound WSDL file (for example, GetEffectiveAddress_invoke.wsdl) from the following directory:
C:\oracle\Middleware\Oracle_SOA1\soa\thirdparty\ApplicationAdapters\wsdls
Click OK.
The Localize Files dialog is displayed.
Click OK.
The outbound WSDL file and associated request and response XML schema files (.xsd) are imported to the project folder that has been created.
You are returned to the Create Third Party Adapter Service dialog.
Click the Find JCA Files icon, which is located to the right of the JCA File field.
The SOA Resource Browser dialog is displayed.
Browse and select the JCA properties file (for example, GetEffectiveAddress_invoke.jca) from the following directory:
C:\oracle\Middleware\Oracle_SOA1\soa\thirdparty\ApplicationAdapters\wsdls
Click OK.
The following message is displayed.
Click Yes.
A copy of the JCA properties file is made in the project folder.
You are returned to the Create Third Party Adapter Service dialog.
Click OK.
The third party adapter service component (GetEffectiveAddress) is created in the External References pane, as shown in the following image.
You are now ready to configure an outbound Mediator process component.
Configuring an Outbound Mediator Process Component
Perform the following steps to configure an outbound Mediator process component:
Drag and drop the Mediator component from the Component Palette tab (Service Components section) to the Components pane.
The Create Mediator dialog is displayed.
In the Name field, enter a name to identify the new outbound Mediator process component (for example, GetEffectiveAddress_Mediator).
From the Template list, select Synchronous Interface.
Click the Browse Input Elements icon, which is located to the right of the Input field to select the associated XML request schema file.
The Type Chooser dialog is displayed.
Expand Project WSDL Files, GetEffectiveAddress_invoke.wsdl, Inline Schemas, schema, and select jdeRequest.
Click OK.
You are returned to the Create Mediator dialog.
Click the Browse Output Elements icon, which is located to the right of the Output field to select the associated XML response schema file.
The Type Chooser dialog is displayed.
Expand Project WSDL Files, GetEffectiveAddress_invoke.wsdl, Inline Schemas, schema, and select jdeResponse.
Click OK.
You are returned to the Create Mediator dialog.
Click OK.
Create a connection between the outbound Mediator process component (GetEffectiveAddress_ Mediator) and the third party adapter service component (GetEffectiveAddress).
You are now ready to configure the routing rules.
Configuring the Routing Rules
Perform the following steps to configure routing rules for the Mediator outbound process component:
Double-click the outbound Mediator process component (GetEffectiveAddress_ Mediator) in the Components pane.
The Routing Rules dialog is displayed.
In the <<Filter Expression>> area, click the Select an existing mapper file or create a new one icon to the right of the Transform Using field.
The Request Transformation Map dialog is displayed.
Select the Create New Mapper File option and click OK.
The jdeRequest_To_jdeRequest.xsl tab is displayed.
Map the iWayRequest:jdeRequest source element to the iWayRequest:jdeRequest target element.
The Auto Map Preferences dialog is displayed.
Retain the default values and click OK.
Click the GetEffectiveAddress_Mediator.mplan tab.
You are returned to the Routing Rules dialog.
In the Synchronous Reply area, click the Select an existing mapper file or create a new one icon to the right of the Transform Using field.
The Reply Transformation Map dialog is displayed.
Select the Create New Mapper File option and click OK.
The jdeResponse_To_jdeResponse.xsl tab is displayed.
Map the iWayRequest:jdeResponse source element to the iWayRequest:jdeResponse target element.
The Auto Map Preferences dialog is displayed.
Retain the default values and click OK.
The mapping is complete, as shown in the following image.
Click the Save All icon in the menu bar to save the new outbound Mediator process component that was configured.
You are now ready to deploy the Mediator outbound process.
Perform the following steps to deploy the Mediator outbound process.
Right-click the project name in the left pane (for example, GetEffectiveAddress_Invoke), select Deploy, and then click GetEffectiveAddress_Invoke.
The Deployment Action page is displayed.
Ensure that Deploy to Application Server is selected.
Click Next.
The Deploy Configuration page is displayed.
Leave the default values selected and click Next.
The Select Server page is displayed.
Select an available application server that was configured and click Next.
The SOA Servers dialog is displayed.
Select a target SOA server and click Next.
The Summary page is displayed.
Review and verify all the available deployment information for your project and click Finish.
The process is deployed successfully.
If an Authorization Request dialog is displayed during the deployment process, provide the required user name and password and click OK.
Perform the following steps to invoke the input XML document in the Oracle Enterprise Manager console.
Log in to the Oracle Enterprise Manager console by using the following URL:
http://localhost:7001/em
Expand your domain in the left pane followed by the SOA folder.
Select an available project (for example, JDE_Outbound_GetEffectiveAddress_Mediator).
Click Test in the right pane.
The Test Web Service page is displayed.
Click the Request tab.
Scroll down to the Input Arguments section.
Select XML View from the list in the upper-left corner.
Provide an appropriate input XML document in the Input Arguments area.
For example:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body xmlns:ns="urn:iwaysoftware:jde/services/CALLBSFN/Addressbook/GetEffectiveAddress"> <ns:jdeRequest sessionidle="" type="callmethod" session=""> <ns:callMethod trans="" app="" returnNullData="yes" name="GetEffectiveAddress" runOnError="yes"> <ns:params> <ns:param name="mnAddressNumber">4242</ns:param> </ns:params> <ns:onError abort="yes"/> </ns:callMethod></ns:jdeRequest> </soap:Body></soap:Envelope>
Click Test Web Service.
The output response is received in the Response tab of the Oracle Enterprise Manager console.
The following example describes how to configure a Mediator inbound process to your J.D. Edwards OneWorld system, using a Mediator project in Oracle JDeveloper.
Prerequisites
Before you design a Mediator inbound process, you must generate the respective WSDL file using Application Explorer. See "Generating WSDL for Event Integration" for more information.
Perform the following steps to create a new SOA application for the inbound Mediator process:
Open Oracle JDeveloper on your system.
In the Application Navigator tab, click New Application.
The Create SOA Application wizard is displayed.
From the Application Template list, click SOA Application.
Enter name for the new SOA application (for example, JDE_Inbound_Mediator) and click Next.
The Name your project page is displayed.
Enter a project name (for example, Transactions_Receive) and click Next.
The Configure SOA settings page is displayed.
From the Composite Template list, select Empty Composite and click Finish.
The new SOA application (JDE_Inbound_Mediator) and associated project (Transactions_Receive) are added to the Application Navigator tab in the left pane.
This section describes how to define a Mediator inbound process, which consists of the following stages:
Configuring a Third Party Adapter Service Component
Configuring an Inbound Mediator Process Component With a File Adapter
Configuring the Routing Rules
Configuring a Third Party Adapter Service Component
Perform the following steps to create a third party adapter service component:
Drag and drop the Third Party Adapter component from the Component Palette tab (Service Adapters section) to the Exposed Services pane.
The Create Third Party Adapter Service dialog is displayed.
Enter a name for the third party adapter service.
Ensure that Service is selected from the Type list (default).
Click the Find existing WSDLs icon, which is located to the right of the WSDL URL field.
The SOA Resource Browser dialog is displayed.
Browse and select an inbound WSDL file from the following directory:
C:\oracle\Middleware\home_GA\Oracle_SOA1\soa\thirdparty\ApplicationAdapters\wsdls
Click OK.
The Localize Files dialog is displayed.
Click OK.
The inbound WSDL file and associated receive/request XML schema file (.xsd) are imported to the project folder that has been created.
You are returned to the Create Third Party Adapter Service dialog.
Click the Find JCA Files icon, which is located to the right of the JCA File field.
The SOA Resource Browser dialog is displayed.
Browse and select the JCA properties file from the following directory:
C:\oracle\Middleware\home_GA\Oracle_SOA1\soa\thirdparty\ApplicationAdapters\wsdls
Click OK.
The following message is displayed.
Click Yes.
A copy of the JCA properties file is made in the project folder.
You are returned to the Create Third Party Adapter Service dialog.
Click OK.
The third party adapter service component (transactions) is created in the Exposed Services pane, as shown in the following image.
You are now ready to configure an inbound Mediator process component.
Configuring an Inbound Mediator Process Component With a File Adapter
Perform the following steps to configure an inbound Mediator process component with a File adapter.
Drag and drop the Mediator component from the Component Palette tab (Service Components section) to the Components pane.
The Create Mediator dialog is displayed.
In the Name field, enter a name to identify the new inbound Mediator process component (for example, Transactions_Mediator).
From the Template list, select Define Interface Later.
Click the OK.
The new Mediator process component is added to the Components pane, as shown in the following image.
Drag and drop the File Adapter component from the Service Adapters pane to the External References pane.
The Adapter Configuration Wizard is displayed, showing the Welcome page.
Click Next.
The Service Name page is displayed.
Type a name for the new File adapter in the Service Name field and click Next.
The Adapter Interface page is displayed.
Ensure that the Define from operation and schema (specified later) option is selected.
Click Next.
The Operation page is displayed.
Select Write File from the list of Operation Type options and specify an Operation Name (for example, Write).
Click Next.
The File Configuration page is displayed.
Specify a location on your file system where the output file is written.
In the File Naming Convention field, specify a name for the output file.
Click Next.
The Messages page is displayed.
Click browse for schema file, which is located to the right of the URL field.
The Type Chooser dialog is displayed.
Select the available schema.
Click OK.
You are returned to the Messages page.
Click Next.
The Finish page is displayed.
Click Finish.
Create a connection between the inbound Mediator process component and the third party adapter service component.
Create a connection between the inbound Mediator process component and the File adapter component.
You are now ready to configure the routing rules.
Configuring the Routing Rules
Perform the following steps to configure routing rules for the Mediator inbound process component:
Double-click the inbound Mediator process component in the Components pane.
The Routing Rules dialog is displayed.
In the <<Filter Expression>> area, click the Select an existing mapper file or create a new one icon to the right of the Transform Using field.
The Request Transformation Map dialog is displayed.
Select the Create New Mapper File option and click OK.
The jdeResponse_To_jdeResponse.xsl tab is displayed.
Map the iWayRequest:jdeResponse source element to the iWayRequest:jdeResponse target element.
The Auto Map Preferences dialog is displayed.
Retain the default values and click OK.
The mapping is complete, as shown in the following image.
Click the Save All icon in the menu bar to save the new inbound Mediator process component that was configured.
You are now ready to deploy the Mediator inbound process. You can follow the same procedure that is described in "Deploying the BPEL Inbound Process".
Once event messages are triggered through J.D. Edwards OneWorld, output XML is received in the location that was specified for the File adapter component. For more information on triggering events in J.D. Edwards OneWorld, see "Triggering an Event in J.D. Edwards OneWorld".