Associating the First Correlation Set with a Receive Activity

8-24 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite ■ Map NameCorr to the incoming LoanAppResponse message type part of the receiveSecond receive activity. This receive activity is associated with the SecondReceive partner link defined by the SecondFileRead.wsdl file. To create property aliases for NameCorr: 1. In the Structure window of Oracle JDeveloper, right-click Property Aliases. 2. Select Create Property Alias. 3. From the Property list, select NameCorr. 4. Expand and select Message Types Partner Link FirstReceive FirstReceive.wsdl Message Types LoanAppl_msg Part - LoanAppl. 5. In the Query field, press Ctrl+Space to define the following XPath expression: ns2:LoanApplns2:Name

6. Click OK.

7. Repeat Step 1 through Step 3 to create a second property alias for NameCorr.

8. Expand and select Message Types Project WSDL Files SecondFileRead.wsdl

Message Types LoanAppResponse_msg Part - LoanAppResponse. 9. In the Query field, press Ctrl+Space to define the following XPath expression: ns4:LoanAppResponsens4:APR

10. Click OK.

8.5.1.6.2 Creating Property Aliases for IDCorr

You create the following two property aliases for the IDCorr correlation set: ■ Map IDCorr to the LoanAppResponse message type part of the receiveSecond receive activity. This receive activity is associated with the SecondReceive partner link defined by the SecondFileRead.wsdl file. ■ Map IDCorr to the CustResponse message type part of the receiveThird receive activity. This receive activity is associated with the ThirdReceive partner link defined by the ThirdFileRead.wsdl file. To create property aliases for IDCorr: 1. In the Structure window, right-click Property Aliases. 2. Select Create Property Alias. 3. In the Property list, select IDCorr. 4. Expand and select Message Types Project WSDL Files SecondFileRead.wsdl Message Types LoanAppResponse_msg Part - LoanAppResponse. 5. In the Query field, press Ctrl+Space to define the following XPath expression: ns4:LoanAppResponsens4:APR

6. Click OK.

7. Repeat Step 1 through Step 3 to create a second property alias for IDCorr.

8. Expand and select Message Types Project WSDL Files ThirdFileRead.wsdl

Message Types CustResponse_msg Part - CustResponse. 9. In the Query field, press Ctrl+Space to define the following XPath expression: Invoking an Asynchronous Web Service from a BPEL Process 8-25 ns6:CustResponsens6:APR Design is now complete.

10. Click OK.

8.5.1.7 Step 7: Reviewing WSDL File Content

To review WSDL file content: 1. Refresh the Application Navigator. The NameCorr and IDCorr correlation set properties are defined in the MyCorrelationSet_Properties.wsdl file in the Application Navigator. Example 8–10 provides an example. Example 8–10 Correlation Set Properties definitions name=properties targetNamespace=http:xmlns.oracle.comMyCorrelationSetcorrelationset xmlns=http:schemas.xmlsoap.orgwsdl xmlns:bpws=http:schemas.xmlsoap.orgws200303business-process xmlns:plnk=http:schemas.xmlsoap.orgws200305partner-link xmlns:xsd=http:www.w3.org2001XMLSchema bpws:property name=NameCorr type=xsd:string bpws:property name=IDCorr type=xsd:double definitions The property aliases are defined in the MyCorrelationSet.wsdl file, as shown in Example 8–11 : Example 8–11 Property Aliases bpws:propertyAlias propertyName=ns1:NameCorr messageType=ns3:LoanAppl_msg part=LoanAppl query=ns2:LoanApplns2:Name bpws:propertyAlias propertyName=ns1:NameCorr messageType=ns5:LoanAppResponse_msg part=LoanAppResponse query=ns4:LoanAppResponsens4:APR bpws:propertyAlias propertyName=ns1:IDCorr messageType=ns5:LoanAppResponse_msg part=LoanAppResponse query=ns4:LoanAppResponsens4:APR bpws:propertyAlias propertyName=ns1:IDCorr messageType=ns7:CustResponse_msg part=CustResponse query=ns6:CustResponsens6:APR Because the BPEL process service component is not created as a web services provider in this example, the MyCorrelationSet.wsdl file is not referenced in the BPEL process service component. Therefore, you must import the MyCorrelationSet.wsdl file inside the FirstReceive.wsdl file to reference the correlation sets defined in the former WSDL. Example 8–12 provides an example. Example 8–12 WSDL File Import import namespace=http:xmlns.oracle.comMyCorrelationSet