nerdexam
Microsoft

70-513 · Question #95

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…

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 =

How the community answered

(34 responses)
  • A
    82% (28)
  • B
    9% (3)
  • C
    3% (1)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice