nerdexam
Microsoft

70-513 · Question #244

You are developing a client application that uses the following code to consume a Windows Communication Foundation (WCF) service. (Line numbers are included for reference only.) 01 Dim myBinding As…

The correct answer is C. Dim channelFactory =. See the full explanation below for the reasoning.

Question

You are developing a client application that uses the following code to consume a Windows Communication Foundation (WCF) service. (Line numbers are included for reference only.) 01 Dim myBinding As BasicHttpBinding = New BasicHttpBinding() 02 Dim myEndpointAddress As EndpointAddress = New EndpointAddress( 04 Dim client As ITaxService = channelFactory.CreateChannel() 05 Dim data As String = client.GetData(1) You need to consume the service. Which code segment should you insert at line 03?

Options

  • ADim channelFactory =
  • BDim channelFactory =
  • CDim channelFactory =
  • DchannelFactory =

How the community answered

(20 responses)
  • A
    15% (3)
  • C
    75% (15)
  • D
    10% (2)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice