• Call us: +91 9501707741
  • tutorialzdiary@gmail.com


SOA SUITE 11g Tutorials

Chapter 1: Introduction
Chapter 2: What is SOA Suite ?
Chapter 3: SOA Suite Architecture
Chapter 4: SOA Suite Components
Chapter 5: BPEL
Chapter 6 : Mediator
Chapter 7: Business Rules
Chapter 8: Human Task
Chapter 9: Adapters
Chapter 10: Error Handling

SOA SUITE 11g Training

Oracle SOA Suite 11g Training Course

SOA SUITE 11g Installation

Part 1: SOA Suite Server Installation
Part 2: JDeveloper Installation
Part 3: Start and Stop Server

SOA SUITE 11g Interview Questions and Answers

Part 1: SOA Suite Basics
Part 2: Installation
Part 3: SOA Suite Architecture
Part 4: BPEL
Part 5: Mediator
Part 6: Business Rules
Part 7: Human Task
Part 8: MDS
Part 9 : Adapters
Part 10 : File and FTP Adapter
Part 11 : Database Adapter
Part 12 : JMS Adapter
Part 13 : Error Handling
Part 14 : Security-OWSM

Part 13 : Error Handling

Question: What is error or fault?
Answer: We say there is error or Fault means when we didn’t receive expected response.

Question: How many types of faults we can have in SOA Suite tool ?.
Answer: We categories fault into two categories.
1. Business Faults
2. Technical Faults

Question: What is Business Fault?
Answer: As the name suggest, these faults related to business scenarios. These errors are thrown explicitly in code by us. E.g. we have written the functionality to do card validation but do card number check if card number comes blank then we throw business fault and reply back to user with same response.

Question: What is Technical Fault?
Answer: Faults other than business faults known as technical faults. There may be many reasons for these technical faults like code break, connectivity error, Invalid message etc. But mostly we receive connectivity errors under technical faults.

Question: Can we define our own faults?
Answer: Yes, we define our own faults in SOA Suite tool, we generally created fault for business fault scenario where we explicitly throw error.

Question: What steps we need to follow to create custom error?
Answer: We need to follow below steps to generate custom error.
1. Define XML structure for fault message.
2. Create message based on that XML structure in WSDL.
3. Associate that message in WSDL operation.

Question: Which activity we use to throw business fault in BPEL?
Answer: We use throw activity to throw business fault.

Question: What is difference between Remote and Binding fault?
Answer: We receive remote fault when we have connectivity issue while connecting to reference systems/applications. We receive binding fault preparation of the invocation fails. For example, the WSDL of the process fails to load. A binding Fault is not retryable. This type of fault usually must be fixed by human intervention.

Question: How we can handle faults in SOA Suite tool?
Answer: We can handle faults by two ways in SOA Suite tool.
1. Using Catch & CatchAll blocks
2. Using Fault Handling Framework

Question: How catch & CatchAll blocks work?
Answer: We use these blocks to handle the fault in BPEL component. We can’t use these blocks in other components to handle the fault. We can apply these blocks to main BPEL process or we can also apply at scope level as per our requirement.

Question: What is the difference between Catch & CatchAll block?
Answer: Following are the difference between Catch & CatchAll block.

Catch block

1. This is used to handle specific fault
2. Store fault information in fault variable
3. We can add more than one Catch block in one BPELL process.

CatchAll block

1. This is used to handle any type of fault.
2. We need to use functions to get the fault details.
3. We can add only on CatchAll block in one BPEL process.

Question: Which function we use to get Fault Name and Fault description in CatchAlll block?
Answer: We use ora:getFaultName() to get fault name and ora:getFaultAsString() function to get fault description in CatchAll block.

Question: What is Fault Handling framework?
Answer: Oracle SOA Suite provides generic fault management framework to handle the faults. We use this framework to handle the fault that occur during invocation time.

Question: What is the difference between Catch blocks and Fault Handling Framework?
Answer: Following are the difference between these two.

Catch & CatchAll Blocks
1. We use Catch & CatchAll block to handle all types of error.
2. These can be used only for BPEL component.
3. We can use this for all BPEL templates (Sync, Async, Oneway).

Fault Handling Framework
1. We use this framework only to handle invocation faults; we can’t use this framework to handle all types of fault.
2. This can be used for BPEL as well as Mediator component.
3. We should use this only for two BPEL templates (Async and OneWay).

Question: How Fault Handling Framework works?
Answer: Fault Handling Framework is based upon two files.
Fault-policy.xml: This file is used to define one or more fault policies with conditions and actions.
Fault-binding.xml: This file is used to associates a policy with a composite, component or reference.

Question: Where we keep these two fault-polic.xml and fault-binding.xml files?
Answer: We keep these files either local to our project or in MDS. We need to specify the path of these files in composite.xml file when we keep these files in MDS.

Question: Can we define more than one policy in fault-policy.xml file?
Answer: We can have more than one policy in fault-policy.xml file and each policy will have its unique id.

Question: What all actions we have in fault-policy.xml file?
Answer: We have following actions in fault-policy.xml file.
1. Retry
2. Human Intervention
3. Terminate
4. Java call
5. replay
6. rethrow

Question: How we handle errors in mediator component?
Answer: We use fault handling framework to handle fault in mediator as in mediator we get only one type of fault.

Question: What is file rejection handler?
Answer: File rejection handler is used to handle rejected file while performing polling.

Question: What all types of rejection handlers we have?
Answer: We have following types of rejection handler in SOA Suite tool.
1. Web Service Handler
2. Custom Java handler
3. Queue handler
4. File Handler


Training Enquiry