移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

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?()

发布日期:2021-03-17

A Windows Communication Foundation (WCF) service l...
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)));

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!

此试题出现在

微软认证考试

护理学章节练习

去刷题