niusouti.com

You are developing a Windows Communication Foundation (WCF) client application.The client application contains the following code.[ServiceContract]public interface ISocialStatus{[OperationContract][WebInvoke(UriTemplate = "/statuses/update.xml?status-{tex

题目

You are developing a Windows Communication Foundation (WCF) client application.The client application contains the following code.[ServiceContract]public interface ISocialStatus{[OperationContract][WebInvoke(UriTemplate = "/statuses/update.xml?status-{text}")]void UpdateStatus(string text);}public class SocialClient : ClientBase, ISocialStatus{...}The configuration file contains the following lines.binding="webHttpBinding" contract="SocialApp.ISocialStatus"bindingConfiguration="BindingConfig" />You need to ensure that the service is consumed.Which code segment should you use?()

A. var client = new SocialClient("SocialClient"); client.Endpoint.Behaviors.Add(new WebHttpBehavior());

B. var client = new SocialClient("SocialClient"); client.Endpoint.Behaviors.Add(new WebScriptEnablingBehovior());

C. var client = new SocialClient("POST"); client.Endpoint.Behaviors.Add(new WebHttpBehovior());

D. var client = new SocialClient("POST"); client.Endpoint.Behaviors.Add(new WebScriptEnablingBehavior());


相似考题
更多“You are developing a Windows Communication Foundation (WCF) client application.The client ”相关问题
  • 第1题:

    Anadministratoristryingtodiagnoseastowhy&e

    AnadministratoristryingtodiagnoseastowhyanewVIOclient(vio_client1)cannotseeanallocateddisk(hdisk4)fromaVIOserver(VIOS-A).TheclientvirtualSCSIadapterhasaslotIDof5andthecorrespondingVIOservervirtualSCSIadapterhasaslotIDof3.TheadministratorchecksthevirtualSCSIconfigurationfromtheHMCusingthefollowinglshwrescommand.

    lshwres–rvirtualio--rsubtypescsi-m9117-570*65ABCDE

    --levellpar-F\lpar_name,slot_num,remote_lpar_name,remote_slot_num,backing_deviceVIOSA,5,vio_client2,2,hdisk3VIOS-A,4,vio_client1,4,hdisk4VIOS-A,3,vio_client1,6,hdisk5VIOS-A,2,vio_client3,2,hdisk6vio_client2,2,VIOS-A,5,hdisk0vio_client1,4,VIOS-A,4,hdisk0

    vio_client1,5,VIOS-A,3,nullvio_client3,2,VIOS-A,2,hdisk0Fromtheoutputabove,

    whatisthemostlikelyreasonwhytheclientcannotseethemappedstorage?()


    参考答案:D

  • 第2题:

    WhichofthefollowingdescribestheappropriateportassignmentandmessageexchangeinastandardTFTPtransaction?()

    A.Server:10.0.0.1:69RRQ/WRQSent;Client:10.0.0.2:1888RRQ/WRQReceived

    B.Server:10.0.0.1:1888RRQ/WRQReceived;Client:10.0.0.2:69RRQ/WRQReceived

    C.Server:10.0.0.1:69RRQ/WRQReceived;Client:10.0.0.2:69RRQ/WRQSent

    D.Server:10.0.0.1:69RRQ/WRQReceived;Client:10.0.0.2:1888RRQ/WRQSent

    E.Server:10.0.0.1:1888RRQ/WRQSent;Client:10.0.0.2:69RRQ/WRQSent

    F.Server:10.0.0.1:1888RRQ/WRQReceived;Client:10.0.0.2:69RRQ/WRQSent


    参考答案:D

  • 第3题:

    92、在Internet上搜索信息时,下列说法不正确的是 。

    A.windows and client表示检索结果必须同时满足windows和client两个条件

    B.windows or client表示检索结果只需满足windows和client中一个条件即可

    C.windows not client表示检索结果中不能含有client

    D.windows client表示检索结果中含有windows或client


    D

  • 第4题:

    您公司的网络中包含运行Windows7的客户端计算机。当一位用户试图从一个名为Client1的计算机登录到域时,他收到了如下消息:“Thesystemcannotlogyouontothisdomainbecausethesystem’scomputeraccountinitsprimarydomainismissingorthepasswordonthataccountisincorrect.”您需要确保用户能够从Client1登录到域。您应该怎么做?()

    A.将client1脱离域,然后再重新连接到域

    B.将Client1的计算机帐户添加到DomainComputersActiveDirectory组

    C.通过ActiveDirectoryUsersandComputers重置Client1的帐户密码

    D.通过ActiveDirectoryUsersandComputers重置该用户的帐户密码


    参考答案:A

  • 第5题:

    在Internet上搜索信息时,下列说法不正确的是 。

    A.windows and client表示检索结果必须同时满足windows和client两个条件

    B.windows or client表示检索结果只需满足windows和client中一个条件即可

    C.windows not client表示检索结果中不能含有client

    D.windows client表示检索结果中含有windows或client


    D