nerdexam
Microsoft

70-513 · Question #305

A Windows Communication Foundation (WCF) service listens for messages at The configuration for the WCF client is as follows: binding="netTcpBinding" bindingConfiguraton="NetTcpBinding_IMyService"…

The correct answer is D. After instantiating the client and before invoking any service operation, add this line of code. See the full explanation below for the reasoning.

Question

A Windows Communication Foundation (WCF) service listens for messages at The configuration for the WCF client is as follows:

binding="netTcpBinding" bindingConfiguraton="NetTcpBinding_IMyService" contract="ServiceReference1.IMyService" name="NetTcpBinding_IMyService"/> The generated configuration does not provide enough information for the client to communicate with the server. You need to update the client so that it can communicate with the server. What should you do?

Options

  • AIn the client configuration, change the value of the address attribute to
  • BIn the client configuration, change the value of the address attribute to
  • CAfter instantiating the client and before invoking any service operation, add this line of code.
  • DAfter instantiating the client and before invoking any service operation, add this line of code.

How the community answered

(19 responses)
  • A
    5% (1)
  • B
    16% (3)
  • C
    5% (1)
  • D
    74% (14)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice