试题详情
- 单项选择题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")));
- D
关注下方微信公众号,在线模考后查看
热门试题
- You have
- 您需要设计一个存取控制战略为付款文件夹为
- You are
- You work a
- 你正在创建一个使用 SqlCommand
- You work
- 你要把一台名为TestKing2的Win
- You are
- Your company&e
- Rate your̳
- 你的网络包含一个名为contoso.co
- You load an XmlDocum
- You use Microsoft .
- You are the network
- Your network&en
- Your network&e
- You create a Web si
- 您正在为在香港居住的客户端开发应用程序。
- You plan
- Your network&e