70-503試験無料問題集「Microsoft TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation 認定」

You are creating a remote database management application by using Microsoft Windows Forms and Microsoft .NET Framework 3.5. You use the Windows
Communication Foundation model to create the application. You write the following code segment. (Line numbers are included for reference only.)
01 public class QueryAnalyzerService :
02 IQueryAnalyzerService, IDisposable {
04 public void Open() {
05}
06 public void ExecuteSql(string sql) {
07...
08!
09 public void Close() {
10...
11}
12 public void Disposed
13...
14}
15...
16}
You need to ensure that each time a client application calls the Open0 method, a new service instance is created. Which code segment should you insert at line 03?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to insert an additional header in a response message.
What should you do?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be exposed for consumption. You need to ensure that the service supports interoperability with the broadest possible number of Web Service toolkits. The service must also support transport-level security. Which configuration setting should you use?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You have successfully created two interfaces: IMyService and IMyServiceClient.
You need to ensure that the service is able to call methods from the client application by using the IMyServiceClient interface.
Which code segment should you use?

You are creating a client application that will call a Windows Communication Foundation service. The service was created by using Microsoft .NET Framework
3.5. You write the following code segment.

You plan to share the validation logic between the client application and the WCF service.
You need to generate a client-side service proxy that includes the validation logic.
Which four tasks should you perform? (Each correct answer presents part of the solution. Choose four.)

正解:B,C,D,E 解答を投票する
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. You are designing a data contract for a Windows Communication foundation (WCF) service that will be hosted by the application. You need to ensure that the data contract meets the following requirements: It does not support Schema versioning.
It allows additional contract and additional elements to be included over time. It allows the client applications to submit messages that contain additional elements without error.
What should you do?

You are creating a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5.
You need to inspect the parameters on the client application.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)

正解:A,D,F 解答を投票する
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You write the following lines of code.

You need to define the metadata for the DoSomething operation contract so that the parameter element is named Input and the method output element is named Output.
Which code segment should you use to replace the existing operation contract?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You create the following service definition
[ServiceContract(SessionMode=SessionMode.Required)] public interface IMyService {
... }
You need to custom manage the lifetime of the session.
Which service implementation should you use?

You are creating a Windows Communication Foundation (WCF) client application by using Microsoft .NET Framework 3.5.
The proxy generated for the WCF service results in the following code segment.

To implement a callback interface, you create the following class in the client application.
public class StoreCallback: IStoreCallback{ }
The client application receives notifications from the service through the callback interface.
You write the following code segment for the client application to use the generated proxy.
(Line numbers are included for reference only.)
02 client.CheckAvailableProducts();
You need to set up duplex communication between the client application and the WCF
service.
Which code segment should you insert at line 01?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service has an operation contract named GetMessage.
You write the following code segment to implement the service. (Line numbers are included for reference only.)

You need to send the contents of the File.xml file to a client application by using the SOAP body.
Which code segment should you insert at line 07?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. You configure the Windows Communication Foundation (WCF) service to be exposed by using the HTTP and TCP endpoints. You plan to deploy the WCF service.
You need to identify the host environment that provides the following services:
Which hosting environment should you use?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application processes sales order documents. The application contains a component that retrieves the sales order documents from a FTP server and stores the data in a Microsoft SQL Server database. You need to ensure that the component meets the following requirements:
Periodically polls the FTP server to check for new order documents Executes without dependencies on other software components Executes without user interaction Executes by using a specific security context Allows system administrators to change the security context by retaining the same component code.
What should you do?