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

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 create the following service contract.

You need to create an endpoint for the service contract in the application configuration file.
Which endpoint should you use?

You are creating a client application by using Microsoft .NET Framework 3.5. You use Windows Communication Foundation (WCF) to create the application.
The client application uses a Personal Information Card to provide authentication information to the WCF server. You write the following code fragment. (Line numbers are included for reference only.)

You need to ensure that one of the claims in the Personal Information Card contains an e-mail address.
Which code fragment should you insert at line 05?

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.
[DataContract]
public class CreditCard {
private string cardNumber = 0; [DataMember] public string Name { get; set; } [DataMember] public string CardNumber { get { return cardNumber; } set { if (!IsValidCreditCardNumber(value)) { throw new ArgumentException("Invalid credit card number"); } cardNumber = value; } }
} 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.)

正解:A、B、C、D 解答を投票する
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You define the following data contract.

You need to identify the structure of the resulting XML instance document. Which structure will the data contract produce?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be hosted in a managed Console application. You want to add endpoints to the service.
You need to ensure that all endpoints use the same base address.
Which code fragment should you use?

DRAG DROP
You are creating an application in Windows Communication Foundation (WCF) by using Microsoft.NET Framework 3.5.
You need to ensure that the client application communicates with the service by using a duplex contract.
Which five actions should you perform? (To answer, move the five appropriate actions from the list of actions to the answer area, and arrange them in the correct order.)
正解:
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to publish metadata programmatically.
Which two code segments should you use? (Each correct answer presents a complete solution. Choose two.)

正解:A、B 解答を投票する
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You find that the service starts even though the endpoints have not been configured correctly. You need to create a custom service behavior that throws an exception if the list of endpoints that are configured is not complete. Which code segment should you use?

You create a client application by using Microsoft .NET Framework 3.5. The client application consumes a Windows Communication Foundation service that uses the netMsmqBinding binding.
The binding uses a private transactional queue named 28 http://www.abc.com
Library. The following code fragment is part of the application configuration file. (Line numbers are included for reference only.)
01 <endpoint binding="netMsmqBinding" 02 contract="ServiceReference.lLibrary" 03 04 /> You need to specify the address of the endpoint.
Which attribute should you insert at line 03?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You write the following code fragment for the configuration setting. (Line numbers are included for reference only.)
01 <wsHttpBinding> 02 <binding name="simple">
04 </binding> 05 </wsHttpBinding>
You need to ensure that the service uses transport security and allows access to anonymous client applications. Which code fragment should you insert at line 03?

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment.

The implementation of the MyMethod operation must call back the CallbackMethod operation. You need to ensure that the service meets the following requirements:
Which service implementation should you use?

You are creating a distributed application by using Microsoft .NET Framework 3.5. You use Windows Communication Foundation (WCF) to create the application.
The client application is used in Company A, and the service application is used in Company B.
Company A and company B have security token services named STS_A and STS_B respectively.
You need to authenticate the client application by using federated security.
Which combination of bindings should you use?

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5
You write the following code segment.

The implementation of the MyMethod operation must call back the CallbackMethod operation.
You need to ensure that the service meets the following requirements:
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. You create the following service contract.

You need to ensure that the DoSomething operation is executed by a single thread at a time.
What are two possible service implementations you should use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

正解:B、C 解答を投票する
You are creating a Windows Communication Foundation (WCF) client application by using Microsoft .NET Framework 3.5. You write the following binding configuration. (Line numbers are included for reference only.)

You need to ensure that the client application can receive string values that contain a maximum of 5,000 characters.
Which configuration settings should you insert at line 04?

You are creating a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5.
You add the following code segment to a service contract.
[ServiceContract]
interface IDocumentService
{
[OperationContract]
int DeleteDocument(int id);
}
The DeleteDocument method in the service contract takes a long time to execute.
The client application stops responding until the method finishes execution.
You write the following code segment to create an instance of a service proxy in the client application.
(Line numbers are included for reference only.)
01 static void Main() 02 {
03 DocumentServiceClient client= new DocumentServiceClient();
05 }
06 static void ProcessDeleteDocument(IAsyncResult result)
07 {
06 ...
09 }
You need to ensure that the service methods are called asynchronously.
What should you do?

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
The service receives automation commands for a factory robot.
You need to ensure that the robot receives the commands in the same order as they are
transmitted.
Which binding element should you use?

You are creating a Windows Communication Foundation service by using Microsoft .NET
Framework 3.5. The service will be hosted in a managed Console application.
You want to add endpoints to the service.
You need to ensure that all endpoints use the same base address.
Which code fragment should you use?

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡