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(
“http://contoso.com/TaxService.svc”) 03 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?
A.
Dim channelFactory = New ChannelFactory(Of ITaxService)(myBinding)
B.
Dim channelFactory = New ChannelFactory(Of ITaxService) (myBinding,
myEndpointAddress)
C.
Dim channelFactory = New ChannelFactory(Of ITaxService)()
D.
channelFactory = New ChannelFactory(Of ITaxService)
(“http://contoso.com/TaxService.svc”)