PrepAway - Latest Free Exam Questions & Answers

What is the most likely result?

You create an XML Web service named AutoPartsService that processes automobile part orders. This service exposes a Web method named PlaceOrder, which is shown in the following code segment:

[WebMethod(TransactionOption.RequiresNew)]
public DataSet PlaceOrder(DataSet orderData) {
Server1.BrakesService brakes = new
Server1.BrakesService();
Server2.PartsService parts = new Server2.PartsService();
// Call OrderBrakes to order only brakes.
brakes.OrderBrakes(orderData.Tables[“Brakes”]);
// Call OrderParts to order all other auto parts.
parts.OrderParts(orderData.Tables[“Parts”]);
}

BrakesService and PartsService are XML Web services. The TransactionOption property of OrderBrakes and OrderParts is set to TransactionOption.Required.

You develop a Windows Forms application named MyPartOrderApp that consumes AutoPartsService. You run MyPartOrderApp and place an order for three sets of brakes and four wheels. While PlaceOrder is placing the order for the wheels, you close MyPartOrderApp.

What is the most likely result?

PrepAway - Latest Free Exam Questions & Answers

A.
OrderParts stops processing the order, and all orders are cancelled.

B.
OrderParts continues processing the order, and all orders are placed.

C.
OrderParts stops processing the order; the brakes are ordered, but the wheels are not ordered.

D.
OrderParts stops processing the order; the brakes are not ordered, but the wheels are ordered.


Leave a Reply