70-320 XML Web Services and Server Components with C#.NET
Note 2: 70-320 Answers are not shown in demo questions.
Exhibits and Answers are only provided in the Full Version.
Demo Question 3.
You have written a serviced component to create client accounts. You need it to always create a new transaction when it is called. <%@ WebService Language="VB" Class="MyClass"%> <%@ assembly name="System.EnterpriseServices" %> Using System.Web.Services Using System.EnterpriseServices Public Class MyClass Inherits WebService Public Sub CreateNewClientAccount(MyCommand As String) What action should you take so that the CreateNewClientAccount subroutine will always create a new transaction when called? (Select the best choice.)
A. Add a call to the ContextUtil.SetComplete() at the end of the CreateNewClientAccount subroutine.
B. Add a call to the ContextUtil.SetComplete() at the beginning of the CreateNewClientAccount subroutine.
C. Add the <AutoComplete()> attribute to the CreateNewClientAccount declaration.
D. Add the <RequiresNew()> attribute to the CreateNewClientAccount declaration.
E. Add a <Transaction> attribute and specify the TransactionOption.Required value in the CreateNewClientAccount declaration.
F. Add a < WebMethod > attribute and specify the TransactionOption.Required value in the CreateNewClientAccount declaration.
G. Add a <WebMethod> attribute and specify the TransactionOption.RequiresNew value in the CreateNewClientAccount declaration.
Display Answer
Purchase Full Version:
70-320 Printable PDF Prep Guide $49.95 BUY NOW!
70-320 Test Simulation Engine $69.95 BUY NOW!
70-320 PDF & Test Simulation Engine $99.95 BUY NOW!
Answer: G
You should add a <WebMethod> attribute and specify the TransactionOption.RequiresNew value in the
CreateNewClientAccount declaration so that the CreateNewClientAccount subroutine will always create a
new transaction when called. The subroutine declaration should resemble this code:
<WebMethod(TransactionOption:=TransactionOption.RequiresNew)> Public Sub
CreateNewClientAccount(MyCommand As String). Web service methods may participate in transactions.
The
TransactionOption property of the <WebMethod> attribute determines how the method participates in a
transaction. The TransactionOption.RequiresNew value indicates that a new transaction will start when the
Web service method is called. None of the other actions are appropriate for this scenario.
Explanation:
- Based on the latest 70-320 exam objectives!
- Designed like actual 70-320 exam questions!
- 100% Verified Realistic 70-320 Exam Questions and Answers!
- Exhibits, Drag&Drop and Simulation 70-320 Questions Included!
- Constantly Updated Guide to Reflect the Current 70-320 Exams!
- Detailed Explanations for Most Guide Practice Exams!

Demark

England

NY, USA








