How should the ServiceContract be tweaked to achieve is?

ServiceContract Exhibit:
<ServiceContract>
Public Class PassGuideService
<OperationContract>
Public Function PassGuideConfirm(ByVal PhoneNumber As String,ByVal wage As Double,ByVal
EmployeeNumber Integer) As Boolean ‘…
End Function
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService exists within SOA (Service Oriented Architecture) within an enterprise.
The serviceContact of PassGuideService is displayed in the exhibit.
Method PassGuideConfirm, when executed, must be participate transperentally in existing
transactions.Furthermore, when there is no existing transaction, a new transaction must be
created.
How should the ServiceContract be tweaked to achieve is?

ServiceContract Exhibit:
<ServiceContract>
Public Class PassGuideService
<OperationContract>
Public Function PassGuideConfirm(ByVal PhoneNumber As String,ByVal wage As Double,ByVal
EmployeeNumber Integer) As Boolean ‘…
End Function
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService exists within SOA (Service Oriented Architecture) within an enterprise.
The serviceContact of PassGuideService is displayed in the exhibit.
Method PassGuideConfirm, when executed, must be participate transperentally in existing
transactions.Furthermore, when there is no existing transaction, a new transaction must be
created.
How should the ServiceContract be tweaked to achieve is?

A.
Use the PassGuideConfirm method..

B.
Use the ServiceContract..

C.
..add the following attribute..

D.
..add the following code inside the definition ..

E.
<OperationBehavior(TransactionScopeRequired false)>

F.
<OperationBehavior(TransactionScopeRequired true)>

G.
<OperationBehavior(TransactionAutoComplete true)>

H.
<OperationBehavior(TransactionAutoComplete false)>

I.
Using New TransactionScope

J.
Using New TransactionScope

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *