Microsoft
70-513 · Question #95
70-513 Question #95: Real Exam Question with Answer & Explanation
The correct answer is A. using (WebChannelFactory<ISocialStatus> factory =. See the full explanation below for the reasoning.
Question
You are developing an application to update a users social status. You need to consume the service using Windows Communication Foundation (WCF). The client configuration is as follow. <system.serviceModel> <bindings> <webHttpBinding> <binding name="SocialConfig"> <security mode="TransportCredentialOnly"> <transport clientCredentialType="Basic" realm="Social API" /> </security> </binding> </webHttpBinding> </bindings> <client> bindingConfiguration="SocialConfig" contract="ISocialStatus" name="SocialClient" /> </client> </system.serviceModel> 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?
Options
- Ausing (WebChannelFactory<ISocialStatus> factory =
- Busing (ChannelFactory<ISocialStatus> factory =
- Cusing (ChannelFactory<ISocialStatus> factory =
- Dusing (WebChannelFactory<ISocialStatus> factory =
Community Discussion
No community discussion yet for this question.