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

What should you do next?

You have a .NET Remoting object named Scheduler. The Scheduler class is in an assembly file named TaskScheduler.dll.

The Scheduler class is hosted by an application named SchedulerServer.exe. This application is configured by using a file named SchedulerServer.exe.config. This file configures the Scheduler class to be a client-activated object by using a TcpChannel and a BinaryFormatter.

You want to deploy the Scheduler object to a computer named Computer1 so that client applications can begin to use it.
You copy TaskScheduler.dll, SchedulerServer.exe, and SchedulerServer.exe.config to a directory on Computer1.

What should you do next?

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?

You need to resolve this problem

You create a serviced component named OrderProcessor. OrderProcessor implements the IOrderInit interface. The component and the interface contain the following code segments:

[Guid(“0B6ABB29-43D6-40a6-B5F2-83A457D062AC”)]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IOrderInit {
// IOrderInit methods go here.
}

public class OrderProcessor: ServicedComponent, IOrderInit { // OrderProcessor methods go here.
}
You discover that every time you rebuild OrderProcessor, existing unmanaged client code fails. The HRESULT for the exception is 0x80040154. The exception includes the following message: “Class not registered.” You need to resolve this problem.

What should you do?

Which two code segments should you use? (Each correct answer presents part of the solution

You are creating an XML Web service named BankCustomer that provides bank customer information. You write code to keep track of error messages, warning messages, and informational messages while the service is running. You use the Trace class to write the messages to a log file.

On test computers, you want to see error messages and warning messages. On deployment computers, you want to see error messages, but not warning messages.

Which two code segments should you use? (Each correct answer presents part of the solution. Choose two.)

Which discovery document should you create?

You create an XML Web service project that consists of three services named BronzeService, SilverService, and GoldService. All three services are located in the same virtual directory on a production computer. When customers subscribe to your service, they select only one of the three available services.
A new customer subscribes to SilverService. You need to create a discovery document that enables this customer to use only SilverService.

Which discovery document should you create?

Which code segment should you use?

You are creating an XML Web service named InventoryService for a national automobile dealership. Each branch of the dealership will build its own client application to consume InventoryService. Each branch connects to the main office of the dealership by using a virtual private network (VPN). All computers in the dealership run on Microsoft Windows operating systems.

You need to ensure that callers of InventoryService are authenticated based on their Windows logon name and password. You configure Internet Information Services (IIS) according to your security needs. You need to configure the authentication type in the Web.config file.

Which code segment should you use?

You need to make the user name and password available to a custom Installer class that will execute the script

You are preparing to deploy an XML Web service named InventoryService. This service queries a Microsoft SQL Server database and returns information to the caller.

You use Visual Studio .NET to create a setup project. You need to install InventoryService. You also need to run a script to create the necessary SQL Server database and tables to store the data. To accomplish this, you need to configure the project to have administrator rights to the SQL Server database.
You add a custom dialog box to the project that prompts the user for the administrator user name and password that are used to connect to the SQL Server database. You need to make the user name and password available to a custom Installer class that will execute the script.

What should you do?


Page 3 of 912345...Last »