You are creating a Windows Communication Foundation (WCF) service.
You have the following requirements:
Messages must be sent over TCP.
The service must support transactions.
Messages must be encoded using a binary encoding. Messages must be secured using Windows stream-based security.
You need to implement a custom binding for the service. In which order should the binding stack be configured?
A. tcpTransport windowsStreamSecurity transactionFlow binaryMessageEncodingYou are consuming a Windows Communication Foundation (WCF) service. The service interface is defined as follows.
[DataContract(Namespace = "")]
public class Item
{
...
}
[ServiceContract(Namespace = "")]
public interface ICatalog
{
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "/Item")]
Item UpdateItem(Item item);
}
The client application receives a WebResponse named response with the response from the service.
You need to deserialize this response into a strongly typed object representing the return value of the method.
Which code segment should you use?
A. DataContractSerializer s = new DataContractSerializer(typeof(Item)); Item item = s.ReadObject(response.GetResponseStream()) as Item; BinaryFormatter f = new BinaryFormatter();An existing Windows Communication Foundation (WCF) service uses basicHttpBinding. You are releasing updates to the service and the client application.
You need to enable the client application to flow transactions to the service.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A. Change to a custom binding that has the httpTransport, textMessageEndcoding, and transactionFlow binding elements in this order.You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData.
PostData is currently defined as follows. [OperationContract]
void PostData(Order data);
You need to modify PostData so that it can receive any SOAP message.
Which code segment should you use?
A. [OperationContract(IsOneWay = true, Action = "*", ReplyAction = "*")] void PostData(Order data);You have an existing Windows Communication Foundation (WCF) Web service.
The Web service is not responding to messages larger than 64 KB.
You need to ensure that the Web service can accept messages larger than 64 KB without generating errors.
What should you do?
A. Increase the value of maxReceivedMessageSize on the endpoint binding.Four Windows Communication Foundation (WCF) services are hosted in Microsoft Internet Information Services (IIS). No behavior configuration exists in the web.config file.
You need to configure the application so that every service and endpoint limits the number of concurrent calls to 50 and the number of concurrent sessions to 25.
Which XML segment should you add to the system.serviceModel configuration section of the web.config file?
A. < serviceBehaviors > < behavior name= " * " > < serviceThrottling maxConcurrentCalls ="50" maxConcurrentSessions ="25"/>You are hosting a Windows Communication Foundation (WCF) service under Microsoft Internet Information Services (IIS) 7.0.
You have set up a Web site in IIS Manager. The physical path is C:\wwwroot\Calendar. There is a Calendar.svc file in the C:\wwwroot\Calendar folder. It contains the following directive.
<%@ ServiceHost Language="C#" Debug="true" Service="Calendar.Calendar" CodeBehind="Calendar.svc.cs" %>
The Calendar.svc.cs file contains the source for the Calendar class in the Calendar namespace. You compile this code into the Calendar.dll file.
You need to deploy your service to the Web site.
What should you do?
A. Copy the Calendar.dll file to the C:\wwwroot\Calendar\code folder.Windows Communication Foundation (WCF) service will be hosted in Microsoft Intemnet Information Services (uS). You create a new application in uS to host this service and copy the service DLL to the bin directory of the application. You need to complete the deployment of this service to uS. What should you do next?
A. Create an asmx file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.You have a secured Windows Communication Foundation (WCF) service.
You need to track unsuccessful attempts to access the service.
What should you do?
A. Set the authorizationManagerType attribute of the serviceAuthorization behavior to MessageYou are configuring a routing service to call a target service. The routing service has no knowledge of the target service's data types other than the service contract. The operation contract for all of the methods of the target service specifies IsOneWay=true. You need to specify the endpoint information for the routing service. What should you do?
A. In the target service configuration file, specify "*" for the client endpoint contract and "*" for the service endpoint contract.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.