最新的Microsoft TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation - 70-503免費考試真題
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 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 (WCF) service by using Microsoft .NET Framework 3.5. The WCF service will validate certificates to authorize
client applications. You write the following code segment. Class Store Implements IStore Public Sub RemoveOrder(ByVal ordered As Integer) _
Implements IStore. RemoveOrder End Sub End Class You need to ensure that only
those client applications that meet the following criteria can access the RemoveOrder method: "AdminUser" is the subject in the client certificate.
"1 bf47e90O0acf4c0089cda65e0aadcf1 cedd592" is the thumbprint in the client certificate. What should you do?
client applications. You write the following code segment. Class Store Implements IStore Public Sub RemoveOrder(ByVal ordered As Integer) _
Implements IStore. RemoveOrder End Sub End Class You need to ensure that only
those client applications that meet the following criteria can access the RemoveOrder method: "AdminUser" is the subject in the client certificate.
"1 bf47e90O0acf4c0089cda65e0aadcf1 cedd592" is the thumbprint in the client certificate. What should you do?
正確答案: B
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?

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?

正確答案: A
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment to define the service. (Line numbers are included for reference only.)

You need to set the ServiceContract attribute for the transaction behavior of the service.
Which code segment should you insert at line 01?

You need to set the ServiceContract attribute for the transaction behavior of the service.
Which code segment should you insert at line 01?
正確答案: B
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 need to identify the structure of the resulting XML instance document. Which structure will the data contract produce?

正確答案: B
You create a client application by using Microsoft .NET Framework 3.5. The client application uses a Windows Communication Foundation (WCF) service. You plan to Implement inspection handling on the client application and the WCF service. You need to add error handling to the WCF service.
What should you do?
What should you do?
正確答案: A
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to host the service in a medium trust environment on a Web server.
Which two bindings should you use? (Each correct answer presents a complete solution. Choose two.)
You need to host the service in a medium trust environment on a Web server.
Which two bindings should you use? (Each correct answer presents a complete solution. Choose two.)
正確答案: C,D
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to programmatically add the following endpoint definition to the service. http://localhost:8000/Examservice/service
Which code segment should you use?

You need to programmatically add the following endpoint definition to the service. http://localhost:8000/Examservice/service
Which code segment should you use?

正確答案: D
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment. (Line numbers are included for reference only.)

When you browse to the base address of the service, you receive the following message:
"Metadata publishing for this service is currently disabled."
You debug the code and discover that the ServiceMetadataBehavior behavior was previously nonexistent.
You need to enable metadata publishing.
What should you do?

When you browse to the base address of the service, you receive the following message:
"Metadata publishing for this service is currently disabled."
You debug the code and discover that the ServiceMetadataBehavior behavior was previously nonexistent.
You need to enable metadata publishing.
What should you do?
正確答案: B
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?
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?
正確答案: A
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You need to ensure that the service can send data in the following format to the client applications.
<Account ld="">
<Name> </Name>
<Balance Currency=""> </Balance> </Account>
Which code segment should you use?
<Account ld="">
<Name> </Name>
<Balance Currency=""> </Balance> </Account>
Which code segment should you use?
正確答案: C
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You create the following service definition.
<ServiceContractQ> _ Public Interface IMyService ... End Interface
You need to custom manage the lifetime of the session.
Which service implementation should you use?
You create the following service definition.
<ServiceContractQ> _ Public Interface IMyService ... End Interface
You need to custom manage the lifetime of the session.
Which service implementation should you use?
正確答案: D
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You write the following code segment to create a service contract. (Line numbers are included for reference only.)

You need to ensure that the client applications always use a binding that supports sessions.
Which code segment should you insert at line 01?
You write the following code segment to create a service contract. (Line numbers are included for reference only.)

You need to ensure that the client applications always use a binding that supports sessions.
Which code segment should you insert at line 01?
正確答案: C