Searching Harvested Assets Previewing of the Created Assets in Harvester

Configuring and Using Automated Harvesting in Design-time and Runtime Environments 6-39 using the Canonicalizer class in the Apache XML Security library. This canonicalizes according to the W3C Canonical XML standard see www.w3.orgTRxml-c14n, which includes canonicalizing the text encoding, line breaks, whitespace, comments, and attribute ordering. Some extra canonicalization not specified in the W3C standard is performed, including normalizing of namespace prefixes, normalizing the order of the elements in WSDLs, removing documentation elements, and inlining any includedimported files.

6.3.8 Downloading Harvested Artifacts

The Harvester creates artifact bundles that may be downloaded from the Harvested Assets. The artifact bundles for these assets are stored in zip files. For example, for an Endpoint, a WSDL file and its associated XSD files are stored in relative locations within the zip payload. When one artifact imports another artifact for example, a WSDL imports a XSD, it always refers to the child artifact relative to the parent. For example, if MyWSDL.wsdl is located in c:\temp and if the child XSD that is being imported resides in c:\temp\schemas\MyXSD.xsd, the parent MyWSDL.wsdl imports the child using the relative path .schemasMyXSD.xsd. When the bundle is downloaded, the child artifact should be created in a folder called schemas relative to the parent so that the parent can resolve the child. For more information about UsingDownloading Assets, see Oracle Fusion Middleware Users Guide for Oracle Enterprise Repository.

6.3.9 Searching Harvested Assets

You can search for harvested assets using either of the following two methods: ■ Section 6.3.9.1, Using Consumption Method ■ Section 6.3.9.2, Using Metadata

6.3.9.1 Using Consumption Method

You can search for harvested services based on a consumption method. In the Basic Search section, when you can select WSDL Ports from the Consumption Method list, as shown in Figure 6–7 , the search returns the services that have a WSDL summary, an Endpoint defined in the WSDL, and a scope set to global. This list also can be used under the More Search Options. 6-40 Oracle Fusion Middleware Configuration Guide for Oracle Enterprise Repository Figure 6–7 Assets Pane - Consumption Method

6.3.9.2 Using Metadata

The Harvester tags each asset with properties that can be used for querying. Figure 6–8 shows how to query for Business Processes that invoke the Write operation. To get the search screen, click More Search Options in the main page of the Oracle Enterprise Repository Web console. In the More Search Options dialog, perform the following: ■ Filter by Additional Criteria : Select the option. ■ Select a Field : Choose internal.introspector.store from the list. ■ Enter an XPath : Type in the text field. A list of available fields is displayed. Configuring and Using Automated Harvesting in Design-time and Runtime Environments 6-41 Figure 6–8 Viewing the More Search Options Dialog in Oracle Enterpise Repository The following search criteria are available: ■ Harvester Description ■ Harvester Version ■ Harvester Namespace ■ Harvested by ■ Invoked Operations of Business Processes

6.3.10 Previewing of the Created Assets in Harvester

You can use the Preview feature to view the created assets in harvester. You can use the Preview feature using either of the following methods: Using Command Line At the command line or in an ant task, if you add -preview true, then the Harvester runs and displays a list of all of the assets that would be created, but it does not actually commit the changes. Using the HarvesterSettings.xml File You can also set the preview mode in the HarvesterSettings.xml file as follows: introspection preview=true readercom.oracle.oer.sync.plugin.reader.file.FileReaderreader writercom.oracle.oer.sync.plugin.writer.oer.OERWriterwriter introspection 6-42 Oracle Fusion Middleware Configuration Guide for Oracle Enterprise Repository

6.3.11 Best Practices