You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner. You need to add a delete operation. You implement the delete method as follows. string void DeleteItems(string id); You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation. What should you do?
Your Windows Communication Foundation (WCF) client application uses HTTP to communicate with the service. You need to enable message logging and include all security information such as tokens and nonces in logged messages. What should you do?
You are creating a Windows Communication Foundation (WCF) service that accepts messages from clients when they are started. The message is defined as follows.
[MessageContract] public class Agent {
public string CodeName { get; set; }
http://www.test4pass.com Leading the way in IT Certification Exams
public string SecretHandshake { get; set; }
}
You have the following requirements: "The CodeName property must be sent in clear text. The service must be able to verify that the property value was not changed after being sent by the client. "The SecretHandshake property must not be sent in clear text and must be readable by the service. What should you do?
You are developing an application to update a user's social status. You need to consume the service using Windows Communication Foundation (WCF). The client configuration is as follows. ?realm="Social API" /> binding="webHttpBinding"
bindingConfiguration="SocialConfig"
contract="ISocialStatus"
name="SocialClient" />
The service contract is defined as follows.
[ServiceContract]
public interface ISocialStatus
{
[OperationContract]
[WebInvoke(UriTemplate =
"/statuses/update.xml?status={text}")]
void UpdateStatus(string text);
}
Which code segment should you use to update the social status?
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?
You are designing a data access service backed by Microsoft SQL Server. Other developers will use your service as a third-party service. You have the following requirements:
You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner. You need to add a delete operation. You implement the delete method as follows. string void DeleteItems(string id); You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation. What should you do?
You are troubleshooting an ASP.NET Web application. System administrators have recently expanded your web farm from one to two servers. Users are periodically reporting an error message about invalid view state. You need to fix the problem. What should you do?
You need to design a solution for programmatically adding reusable user-interface code to views and allowing the user-interface code to be rendered from the server side. Which approach should you recommend?