PrepAway - Latest Free Exam Questions & Answers

Category: 70-320

Exam 70-320: Developing XML Web Services and Server Components with Microsoft Visual C# .NET and the Microsoft .NET Framework

Which code segment should you use?

Your company receives product information from manufacturers in the form of XML documents. The product information is stored in a Microsoft SQL Server database.

The format of each XML document varies. Each one is located in a MemoryStream object named newProds.

You create a merge procedure that reads data and schema information in a DataSet object and merges the information into your database. You now need to write code to transfer the XML document and its schema into a DataSet object.

Which code segment should you use?

Which code segment should you use?

You have a SqlDataReader object named productsDataReader. The productsDataReader object contains three columns in the following order:

ProductID as Integer
ProductName as nvarchar(40)
UnitsInStock as Integer

You want to use productsDataReader to create an inventory management report. You define the following three variables:

int myProductID;
string myProductName;
int myUnits;

You need to ensure that the report runs as quickly as possible.

Which code segment should you use?

Which code segment should you use?

You have a DataSet object named loanCustomersDataSet that contains customers serviced by the loan department of your company. You receive a second DataSet object named assetCustomersDataSet that contains customers serviced by the asset management department of your company. Both objects have the same structure.

You want to merge assetCustomersDataSet into loanCustomersDataSet and preserve the original values in loanCustomersDataSet.

Which code segment should you use?

Which two actions should you take? (Each correct answer presents part of the solution

You create an XML Web service that calculates taxes. You deploy the service to a production computer named Production. The URL of the production XML Web service is http://Production/WS/TaxCalc.asmx. The service does not support all international tax rates. You want to find out which unsupported tax rates are being requested by users. If a user requests a tax rate that is not supported, the service records the request by using a trace message. You then want to view the unsupported rates that have been requested. Which two actions should you take? (Each correct answer presents part of the solution. Choose two.)

You need to resolve this exception

You create a .NET Remoting object named AdminService, which is hosted in Internet Information Services (IIS). The object uses an HttpChannel and a BinaryFormatter. AdminService is in an assembly named AdminService.dll. The URL for AdminService is http://LocalHost/AdminService/AS.rem.

You write a test console application named Tester.exe to test the AdminService interface. Tester.exe includes the following code segment:

public class Tester {
public static void Main(string[] Args) {
AdminService service = new AdminService();
// Code to exercise the service object.
}
}

You write a configuration file for Tester.exe. The configuration file is named Tester.exe.config and
includes the following code segment:
You run Tester.exe. The application immediately throws a System.NullReferenceException. The exception includes the following message: “Object reference not set to an instance of an object.” You need to resolve this exception.

What should you do?

What should you do?

You create a serviced component named Scheduler. Scheduler is registered in a library application. The Scheduler methods parse String objects into DateTime objects. You write a console application named Coverage.exe to test each method in Scheduler. You want Coverage.exe to test Scheduler for multiple cultures to verify its globalization support. What should you do?

What should you do?

You create an XML Web service that uses the Trace class to output error messages, warning messages, and informational messages to a log file. The service uses a TraceSwitch object to filter the trace output.

The DisplayName property of the TraceSwitch object is “globalSwitch”. On a development computer, all trace output appears in the log file.

You move the service to a production computer. You must configure the production XML Web service to output only error messages to the log file.

What should you do?

You need to resolve this problem

You create a collection of serviced components that performs bank transfers. All the components are marked with the Transaction(TransactionOption.Required) attribute. All the methods in the components are marked with the AutoComplete() attribute. You discover that incorrect balance amounts are being transferred. You decide to debug the components. During debugging, a System.Runtime.InteropServices.COMException is thrown. The HRESULT for the exception is 0x8004E002. The exception includes the following message: “The root transaction wanted to commit, but transaction aborted.” You find that this exception occurs only during the debugging session, and not when the components run outside of the debugger. This exception is preventing you from continuing to debug the components. You need to resolve this problem. What should you do?

What should you do?

You have a .NET Remoting object named BatchOrder. The BatchOrder class allows remote client applications to submit orders in batches. Each BatchOrder object holds state information that is specific to each remote client application. The BatchOrder class has overloaded constructors for initializing an object. You want to develop a server application to host BatchOrder objects. What should you do?


Page 5 of 9« First...34567...Last »