Wednesday 3 February 2016

Interview Questions Error Handling-1

1)Error/Fault?
  Error or Fault means when we didn’t receive expected response.

2) Types of faults in SOA Suite tool ?.
 We have fault into two categories.
1. Business Faults
2. Technical Faults


3) Business Fault?
 faults are related to business scenarios. These errors are thrown explicitly in code by us.

4)  Technical Fault?
Has part of technical Fault ,generally receive connectivity errors under technical faults.

5) Can we define our own faults?
 Yes, In SOA Suite tool we can 
define our own faults, we generally created fault for business fault scenario where we explicitly throw error.

6) Steps  to follow to create custom error?
 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.

7) Difference between Remote /Binding fault?
 We receive remote fault when we have connectivity issue while connecting to reference systems/applications. We receive binding fault preparation of the invocation fails. 

8)Handle faults:
Handle faults by two ways 
1. Using Catch & CatchAll blocks
2. Using Fault Handling Framework


9)Batch & CatchAll blocks:
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 based on the requirement.

No comments:

Post a Comment