Download - Getting Started With Oracle SoA Lab 12
-
7/27/2019 Getting Started With Oracle SoA Lab 12
1/62
Getting Started with Oracle SoA
Asynchronous BPEL Process Callback Lab#12
Description:BISP is committed to provide BEST learning material to the beginners and
advance learners. In the same series, we have prepared a complete end-to end
Hands-on Beginners Guide for Oracle SoA. The document focuses on
Asynchronous BPEL Process Callback.Join our professional training program and
learn from experts.
History:Version Description Change Author Publish Date0.1 Initial Draft Shiva Kant Pandey 21st Aug 20120.1 Review#1 Amit Sharma 29th Aug 2012
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 1
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
2/62
Project on Asynchronous BPEL Process Callback
ASYNCHRONOUS BPEL PROCESS:
An asynchronous Process is one which you call and need not wait for the response before
proceeding further. You may just initiate the Asynchronous process and receive the response
when you require it as a part of your process; hence you are not forced to wait for response.
Real life example of a Synchronous process: You call a friend and ask him to give yousome information. While your friend is finding out the information for you, you are on thecall waiting for his response. Note that connection is not dropped
Real life example of an Asynchronous process: You call a friend and ask him to giveyou some information. You ask him to call you back when the information is ready andyou disconnect the call. When your friend is ready with the information, he calls you andgives you the information. Note that you dont wait for a response from your friend andconnection is lost. When your friend is ready, he has to establish a new connection andthen provide you the information
Stepwise Procedure for asynchronous process student BPEL Process
project
Step 1: Create new project
New --->All Technologies--->SOA Tier --->SOA project --->OK ---> Project Name
(ProcessStudentAsync) ---> ADF Business Component---> SOA--->Next
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 2
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
3/62
Composite with BPEL Process---> Finish
Step2 : Fill all its blank spaces
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 3
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
4/62
Name (ProcessStudentAsync) ---->NameSpace (Leave as it is)--->Template(Select
Asynchronous BPEL Process)---> Service Name(ProcessStudentAsyncService)----> mark Expose
as a SOAP service --->Click Ok
Step3: Open Composite.xml & observe BPEL Process
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 4
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
5/62
Step 4: Click on ProcessStudentAsync.xsd & it is automatically generated xsd for Async bpel
process
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 5
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
6/62
Step 5: : Open ProcessStudentAsync.xsd & Right Click on target namespace & click import
Step 6: View empty import in design mode
Step 7: Click on source mode & modify import by providing namespace & schemalocation of
Student.xsd from oramds.
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 6
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
7/62
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 7
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
8/62
Step 8: Copy Schemalocation of Student.xsd from Resource Palette SOA-MDS by using
shortcut keys CTRL+SHIFT+C & Paste inside ProcessStudentAsync.xsd as shown below &
delete all text inside indicated red box
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 8
Replace all text
inside indicated
red box with
oramds:
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
9/62
Step 9: Provide namespace & schema location of Student.xsd from oramds
Step 10: Register Student.xsd namespace with prefix inside xml schema
xmlns:stdobj="http://www.bispsolutions.com/training/soa/schema/Student"
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 9
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
10/62
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 10
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
11/62
Step 11:Edit element name & their type for process & process response .
Step 12: Preview xsd on design mode
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 11
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
12/62
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 12
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
13/62
Step 13: : Drag & Drop Assign Activity & rename it as AssignTempMarks & click to edit it .
Step 14: : Create TotalVar , AvgVar, ResultVar all assigned as integer Type & ResultVar as
string type then click OK
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 13
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
14/62
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 14
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
15/62
Step 15: Click ok
Step 16:To assign TotalVar click on expression Drag & Drop on TotalVar as shown below:
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 15
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
16/62
Step 17: Click Lang1Marks ---> insert into expression ---> plus sign(+)--> Lang2Marks--->
insert into expression ---> plus sign(+)--> Lang3Marks---> insert into expression---> Click Ok
Step 18: : Click Expression Drag it & keep it in AvgVar under Variables
Click TotalVar under BPEL Variables---> insert into expression ---> Select Mathematical
Function choose Divide --> insert into expression ---> 3.0(Since number of subjects are
three )---> OK
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 16
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
17/62
Step 19: Click Ok
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 17
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
18/62
Step 20: : Drag Switch activity From Component Palette located at Right Pane of
window & keep it in between AssignTempMarks & CallbackClient
Step 21:
Click on Condition
Click on Xpath Expression builder to set condition
Click Lang1Marks ---> insert into expression ---> greater equals 35--> Lang2Marks--->insert into expression ---> greater equals 35--> Lang3Marks---> insert into expression--> greater equals 35--> Click Ok
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 18
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
19/62
Step 22: Drag & Drop Assign activity under true condition & rename it as AssignPASS as
shown below
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 19
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
20/62
Step 23:
Click on Copy Rules
Click Expression Drag it & keep it in ResultVar under Variables
Write under Expression 'PASS' and click Ok
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 20
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
21/62
Step 24:Drag & Drop Assign activity under true condition & rename AssignFAIL as shown
below
Step 25:
Click on Copy Rules
Click Expression Drag it & keep it in ResultVar under Variables
Write under Expression 'FAIL' and click Ok
To assign output drag & drop Assign activity as shown below & edit it as AssignOutput
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 21
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
22/62
Step 26: Map ProcessResponse as shown in diagram so that we can get output response
according to mapping elements then click OK
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 22
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
23/62
Step 27: Assign output completed & also BPEL process completed Now Click on Compile Icon
shown below
Successful compilation with 0 errors & 0 warnings
NOTE: Since we have completed asynchronous BPEL Process calling service now next aim to
create a new caller service i.e StudentProcessoneway BPEL Process
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 23
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
24/62
Process
Step 28:Create new project
New --->All Technologies--->SOA Tier --->SOA project --->OK ---> Project Name
(StudentProcessOneWay) ---> ADF Business Component---> SOA--->Next
Step 29: Click onComposite with BPEL Process
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 24
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
25/62
Step 30: Fill all its blank spaces
Name (StudentProcessOneWay) ---->NameSpace (Leave as it is)--->Template(Select One Way
BPEL process)----> Service Name(StudentProcessOneWayService)----> mark Expose as a SOAP
service --->Click Ok
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 25
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
26/62
Step 31: Open Composite.xml & observe BPEL Process
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 26
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
27/62
Step 32: Click on StudentProcessOneWay.xsd & it is automatically generated xsd for one
way bpel process .
Step 33: : Open StudentProcessOneWay.xsd & Right Click on target namespace & click
import
Step 34: Click on source mode & Import Student.xsd & also register it as shown below
1. Import Student.xsd from oramds under resource palette by provide itsnamespace & schemalocation
2. Register its namespace following with its prefix stdobj3. Rename element name & its type as shown below
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 27
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
28/62
Step 35: Explore Process--> Student--> ( Name, Number, Email, Lang1Marks, Lang2Marks,
Lang3Marks )
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 28
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
29/62
Step 36: Open StudentProcessOneWay. bpel , Drag & Drop invoke activity from component
palette
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 29
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
30/62
Step 37: Before Invoking ProcessStudentAsync Service copy ProcessStudentAsync.wsdl from
ProcessStudentAsync Project folder . Open jdeveloper ---> mywork--->SOAApplication--->
ProcessStudentAsync---> ProcessStudentAsync.wsdl
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 30
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
31/62
Step 38: Paste ProcessStudentAsync.wsdl into StudentProcessOneWay Project folder . Open
jdeveloper
---> mywork--->SOAApplication---> StudentProcessOneWay ---> ProcessStudentAsync.wsdl
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 31
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
32/62
Step 39: Now Open recently pasted wsdl in Text Editor & make this abstract wsdl into
concrete by adding binding & service information .
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 32
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
33/62
Step 40: Deploy ProcessStudentAsync Project on Application server
Step 41: Click on ProcessStudentAsync & open it
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 33
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
34/62
Step 42: Open concrete runtime wsdl by clicking on the following link shown below :
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 34
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
35/62
Step 43: Copy soap registration from this run time wsdl
xmlns:soap="http://schema.xmlsoap.org/wsdl/soap/"
Step 44: Paste copied registration into Text Editor
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 35
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
36/62
Step 45: Copy ws policy from run time wsdl as shown below :
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 36
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
37/62
Step 46: Paste copied ws policy inside ProcessStudentAsync.wsdl opened in Text Editor as
shown below :
Step 47: Copy Binding & service information from run time ProcessStudentAsync wsdl
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 37
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
38/62
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 38
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
39/62
Step 48 Paste copied binding & service information inside ProcessStudentAsync.wsdl opened
in Text Editor as shown below :
Now save all by clicking save all icon at the top & close all tabs .
Step 49: Refresh by clicking refresh icon so after refreshing observe
ProcessStudentAsync.wsdl under StudentProcessOneWay Project at left pane , then click on it
to open .
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 39
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
40/62
Step 50: Open ProcessStudentAsync concrete wsdl in design mode & observe following points
Port Types : One is Process for receiving input & other ProcessResponse for providingresponse after call back
Bindings /PartnerLinkTypes : first binding contains policy reference & this policyreferencing directly towards ws addressing policy second binding is for processingresponse for call back & lastly observe that this callback service has two roles i.eprovide & requester .
Services : Since here wsdl is concrete & so contains services .
Imports is showing warning & so we have to check the problem in source mode & try toresolve it .so after diagnosis found that ProcessStudentAsync.xsd is missing under
StudentProcessOneWay ---> xsd , so now our aim is to copy it from ProcessStudentAsync
---> xsd physically & paste it inside StudentProcessOneWay ---> xsd
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 40
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
41/62
Step 51: Copy ProcessStudentAsync.xsd from jdeveloper--> my work --> SOAApplication-->
ProcessStudentAsync -->xsd
---> ProcessStudentAsync.xsd
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 41
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
42/62
Step 52: : Paste ProcessStudentAsync.xsd inside jdeveloper--> my work --> SOAApplication--
> StudentProcessOneWay -->xsd & then close all tabs
Step 53: Click Refresh icon till ProcessStudentAsync.xsd does not appear
under StudentProcessOneWay Project
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 42
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
43/62
Observe that we have resolve imports warning
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 43
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
44/62
Step 54: Drag & Drop partnerlink web service from BPEL Constructs into Partner links swim
lane
Name : ProcessStudentAsync
WSDL URL : ProcessStudentAsync.wsdl (Browse it by clicking its icon )
Partner Link Type: ProcessStudentAsync
Partner Role : ProcessStudentAsync Provider
My Role : ProcessStudentAsync Requester
Click OK
Step 55: Created ProcessStudentAsync as PartnerLink as shown below :
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 44
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
45/62
Step 56: Now Drag & Drop Invoke activity & Edit Invoke
Name: InvokeProcessStudentAsync
Partner Link : ProcessStudentAsync
Operation : Process
Click on green plus & Create Variable1. Name : ProcessStudentAsync_InputVariable
2. Type : auto generate3. Select Global variable4. Click Ok
Click OK
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 45
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
46/62
Step 57: Look at the wiring between Invoke activity & third party service ProcessStudentAsync
service
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 46
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
47/62
Step 58: Drag & drop receive activity from the Component Palette & click on it to edit
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 47
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
48/62
Since calling service is Asynchronous BPEL call back service & hence it needs receive activity
to receive invoked response.
Step 59: Edit receive Activity
Name: ReceiveProcessStudentAsync
Conversation Id : Leave as it is
Partner Links: ProcessStudentAsync
Operation : ProcessResponse
Create Variable by clicking green plus1. Name: ReceiveProcessStudentAsync_OutputVariable2. Type : Auto generate3. Global variable4. Click Ok
Click OK
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 48
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
49/62
Step 60: Observe that in asynchronous call back process all other activities after invoke doesnot wait for invoke process
but they work simultaneously & receive the response whenever needed through receive
activity & so there is arrangement of message id that the given input is processed & provide to
exactly the same caller by same message id so if there is enormous amount of messages are
placed then it keeps in queue & process the data & keep that large amount of processed data
with their message id's of instances .
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 49
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
50/62
Step 61: Drag & drop assign activity from component palette into component swim lane
between receive input & invoke ProcessStudentAsync & rename it as AssignInvokeInput & click
to edit it
Step 62:
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 50
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
51/62
Map all data from inputvariable to ProcessStudentAsync_Input variable/client:process/client:Student/ns2:Name ---------------------------
/ns1:process/ns1:Student/ns2:Name
/client:process/client:Student/ns2:Number-------------------------
/ns1:process/ns1:Student/ns2:Number
/client:process/client:Student/ns2:Email----------------------------/ns1:process/ns1:Student/ns2:Email
/client:process/client:Student/ns2:Lang1Marks--------------------
/ns1:process/ns1:Student/ns2:Lang1Marks
/client:process/client:Student/ns2:Lang2Marks-------------------
/ns1:process/ns1:Student/ns2:Lang2Marks
/client:process/client:Student/ns2:Lang3Marks-------------------
/ns1:process/ns1:Student/ns2:Lang3Marks
Click Ok
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 51
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
52/62
Step 63: Drag & drop Email Notification below receiveProcessStudentAsync & rename it as
Email student
Step 64: Click on Email student ---> click expression for "TO" ---> Email ---> Insert into
Expression
& Expression look like :bpws:getVariableData('ReceiveProcessStudentAync_OutputVariable','payload','/ns1:processResponse/ns1:StudentResult/ns2:Email')
Click Ok
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 52
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
53/62
Step 65: : Click on Email student ---> click expression for "Subject" ---> Name ---> Insert into
Expression
& Expression look like :bpws:getVariableData('ReceiveProcessStudentAync_OutputVariable','payload','/ns1:processResponse/ns1:StudentResult/ns2:Name')
Click Ok
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 53
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
54/62
Step 66: Click on Email student ---> click expression for "Body" ---> StudentResult ---> Insert
into Expression
& Expression look like :
Click Ok
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 54
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
55/62
Step 67: click Ok
Step 68 : Save all & then Compile by clicking into compile icon shown below
Compilation : 0 errors , 0 warnings .
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 55
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
56/62
Step 69: Deploy StudentProcessOneWay to dev soa (application server )
NOTE : "Before deploying composite start admin server" .
Deployment finished
Step 70: Click On browser ---> Start Enterprise manger -----> login using credentials
(username : weblogic & password : welcome1) , now click twice on
StudentProcessOneway[1.0] composite
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 56
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
57/62
Step 71: Click on Test to test the composite instance
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 57
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
58/62
Step 72: Input required data in all blank fields & click to TestWebService
Step 73: Message for web service invocation was successful is Shown below & also an email is
sent to the student so click Launch Flow Trace
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 58
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
59/62
Step 74: Notice that state is completed ,Click on StudentProcessOneWay
Step 75: To observe the flow chart of the composite , Click FlowTrace ----> Flow & then
observe both the figures
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 59
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
60/62
Fig(1) Fig(2)
Step 76: Click on Invoke notification & see the details of Student sent Email Also notice the
message ID of the notification at last of message .
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 60
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
61/62
Step 77: Come back to StudentProcessOneWay Composite home & click on ShutDown tab
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 61
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
7/27/2019 Getting Started With Oracle SoA Lab 12
62/62
Step 78: Successfully Shut Down the composite . also shut down the admin server