Click Done to save your settings.

10-2 Oracle Fusion Middleware Integration Guide for Oracle Enterprise Repository

10.1.1 Harvest Artifacts

Oracle Enterprise Repository can harvest BPEL, WSDL, XSD, and XSLT files and file directories. After harvesting, Oracle Enterprise Repository automatically creates assets, populates asset metadata, and generates relationship links based on the information in the artifact files. The harvesting function is available from the command line, and can be integrated into Oracle JDeveloper or into the build process. You can publish or harvest a Oracle SOA Suite project to the Oracle Enterprise Repository either from the command-line or from Oracle JDeveloper, or using an Ant task. The Harvester harvests Oracle SOA Suite artifacts, including BPEL, WSDL, XSD and XSLT files and file directories, and automatically creates assets, populates asset metadata, and generates relationship links based on the information in the artifact files. To publish a SOA project from Oracle JDeveloper 11g R1, perform the following steps:

1. In Oracle JDeveloper, right-click the SOA project and select Harvest SOA

Composite Project . The Harvest SOA Project dialog is displayed.

2. Click OK. This runs an Antscript to harvest the SOA composite to Oracle

Enterprise Repository. For more information about harvesting artifacts from the JDeveloper 11g R2 version, see Section 9.1.1, Integrating with Oracle JDeveloper 11g R1 Patchset Releases . For more information about harvesting artifacts from the JDeveloper 10g version, see Section 9.1.3, Integrating with Oracle JDeveloper 10g .

10.1.2 Search Oracle Enterprise Repository

You can access the assets and artifacts available in the Oracle Enterprise Repository through Oracle JDeveloper. Through Oracle JDeveloper, you can search for assets matching various criteria or view assets that may be of interest to a development project. To search for assets in Oracle Enterprise Repository, perform the following steps:

1. In Oracle JDeveloper, click Resource Palette. The Resource Palette tab with the

IDE Connections is displayed. 2. In the Search text field, enter the search criteria, for example, the name of the asset that you want to view the details for, and click Start Search. The Search Results pane is displayed with the assets.

10.1.3 View Asset Details

For selected assets, you can view asset details such as description, usage history, expected savings, and relationships. Within the asset metadata, links to the supporting documentation, user guides, test cases are provided to better enable you to reuse the existing functionality. Note: The Harvester is not restricted to Oracle products, it is used to harvest standards-based artifacts generated from any tooling. Using the IDE to Interact with Oracle Enterprise Repository 10-3

10.1.4 Download Artifacts

You can download an asset’s artifacts i.e., payload into your project. Typically an asset payload is the functionality that you must use a service such as a WSDL file or incorporate into your code base such as a binary or a BPEL file. You can consume services, schemas, xslts and events from Oracle Enterprise Repository. To track the usage of an asset, you have to first associate a JDeveloper application with Oracle Enterprise Repository project. This section contains the following topics: ■ Section 10.1.4.1, Associating JDeveloper Application with Oracle Enterprise Repository ■ Section 10.1.4.2, Consuming WSDLService from Oracle Enterprise Repository

10.1.4.1 Associating JDeveloper Application with Oracle Enterprise Repository

To associate JDeveloper application with Oracle Enterprise Repository project, perform the following steps:

1. In Oracle JDeveloper, click Application, and then Application Properties. The

Application Properties dialog is displayed.

2. Select Repository. The Repository page is displayed.

3. Select the following options, as shown in Figure 10–1 . ■ Repository Connection: Select the Oracle Enterprise Repository connection that you want to use for usage tracking. ■ Repository Project: Select the Oracle Enterprise Repository project that you want to use for usage tracking. Note: To consume assets from Oracle Enterprise Repository within JDeveloper 11g, one has to configure application-level properties and add repository. 10-4 Oracle Fusion Middleware Integration Guide for Oracle Enterprise Repository Figure 10–1 Application Properties - Repository Page

4. Click OK.

You can now consume assets from the connection that you have selected. And usage is added to the Oracle Enterprise Repository project that you selected.

10.1.4.2 Consuming WSDLService from Oracle Enterprise Repository

To consume a WSDL file or a service from Oracle Enterprise Repository, perform the following steps:

1. In Oracle JDeveloper, double-click the composite.xml file. The composite.xml page

is displayed. 2. Drag and drop the Web Service component from the Component Palette to the External References swim lane. The Create Web Service dialog is displayed.

3. Click the Finding Existing WSDLs icon at the end of the WSDL URL field. The

SOA Resource Browser dialog is displayed.

4. Select Resource Palette from the list and then select IDE Connections, Oracle

Enterprise Repository , Connection Name, Asset Types, Service, as shown in Figure 10–2 .