You create a Windows Communication Foundation (WCF) service.
The service must meet the following requirements:
Communicate errors as exceptions that originate in the service operations.
Publish the errors as part of the WCF contract.
You need to throw an exception inside the service operation method.
Which type of exception should you throw?
A. ProtocolExceptionYou are developing a Windows Communication Foundation (WCF) service to provide shopping cart support. ASP.NET compatibility mode is not enabled.
The shopping cart information must be retained across user visits to the store until the user explicitly empties the cart or submits the cart contents to order.
You need to implement the service as a DurableService.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Use basicHttpBinding for both the client application and the service.You create a service and deploy it on a network in a building named Building1. You will deploy the service to Building2. The service in Building1 is configured using the following discovery scopes.

The service in Building2 will be configured using the following discovery scopes.

You need to ensure that the client application can discover the service in Building1 or the service in Building2.
Which scopes should you add to the client configuration file?
You implement a Windows Communication Foundation (WCF) service. The service is hosted in Internet Information Services (IIS).
The service must use X.509 certificates to authorize specific methods.
You need to configure the service.
What should you do? (Each correct answer presents part of the solution. Choose two.)
A. Set the value of the Name property of the PrincipalPermissionAttribute to the identity of the certificate.You are developing a Windows Communication Foundation (WCF) service that contains the following operation contract.
Function GetCustomerNames() As CustomerNames
The operation returns customer names.
You need to develop a definition for the operation contract that produces XML with the following structure.

Which code segment should you use
A. Public Class CustomerNamesA Windows Communication Foundation (WCF) service is responsible for transmitting XML documents between systems.
The service has the following requirements:
It must minimize the transmission size by attaching the XML document as is without using escape characters or base64 encoding. It must interoperate with systems that use SOAP but are not built on the .NET platform.
You need to configure the service to support these requirements.
Which message encoding should you use?
A. Binary message encodingYou are developing a Windows Communication Foundation (WCF) client application. The client application contains the following code.

The configuration file contains the following lines.

You need to ensure that the service is consumed. Which code segment should you use?
A. var client = new SocialClient("SocialClient"); c1lent.Endpoint.Behaviors.Add( new WebHttpBehovior());You are developing a Windows Communication Foundation (WCF) service. The service configuration file has a
You need to ensure that all security audit information, trace logging, and message logging failures are recorded.
Which configuration segment should you add to the

Windows Communication Foundation (WCF) application uses a data contract that has several data members.
You need the application to throw a Serialization Exception if any of the data members are not present when a serialized instance of the data contract is deserialized.
What should you do?
A. Add the Known Type attribute to the data contract. Set a default value in each of the data member declarations.You develop a Windows Communication Foundation (WCF) service that uses basic authentication for client credentials. This service is currently configured to use message security.
The service is hosted on a server in workgroup mode.
Users report that their passwords are stolen when they use public computers.
You need to ensure that messages are secure and users are authenticated. You prevent the service from being called over HTTP through Microsoft Internet Information Services (IIS) configuration.
What should you do next?
A. Use the transport security mode and specify None for transport client credential type.Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-513 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.