可学答题网 > 问答 > MCTS(70-513)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

A Windows Communication Foundation (WC


A Windows Communication Foundation (WCF) service listens for messages at net.tcp://www.contoso.com/MyService.It has a logical address at http://www.contoso.com/MyService. The configuration for the WCF client is as follows: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?()

  • A In the client configuration, change the value of the address attribute to net.tcp://www.contoso.com/MyService
  • B In the client configuration, change the value of the address attribute to net.tcp://www.contoso.com/MyService listen=http://www.contoso.com/MyService.
  • C After instantiating the client and before invoking any service operation, add this line of code. EndpointBehaviors.Add(new EndpointDiscoveryBehavior(){ Enabled = true });
  • D After instantiating the client and before invoking any service operation, add this line of code. client.Endpoint.Behaviors.Add(new ClientViaBehavior(new Uri("net.tcp://www.contoso.com/IMyService")))
参考答案
参考解析:
分类:MCTS(70-513)题库
相关推荐

1、A Windows Communication Foundation (W

A Windows Communication Foundation (WCF) service is deployed with netTcpBinding.This service uses a duplex message exchange pattern.You are develop...

2、A Windows Communication Foundation (WC

A Windows Communication Foundation (WCF) service sends notifications when the service is started and stopped.You need to implement a client that...

3、A Windows Communication Foundation (W

A Windows Communication Foundation (WCF) solution exposes the following service over a TCP binding.(Line numbers are included for reference only.)...

4、A Windows Communication Foundation (WC

A Windows Communication Foundation (WCF) solution uses two services to manage a shopping cart. Service A processes messages containing line items...

5、A Windows Communication Foundation (WC

A Windows Communication Foundation (WCF) application exposes a service as a SOAP endpoint for consumption by cross-platform clients.During integrat...

6、A Windows Communication Foundation (WC

A Windows Communication Foundation (WCF) service uses the following service contract. [ServiceContract] public interface IService{ [OperationCon...