当前位置:MCTS(70-513)题库

问题:

[单选]

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

否认 按照证券投资的对象,可以将证券分为()。 债券投资。 股票投资。 联营投资。 组合投资。 直线职能制组织的缺点是() 高层处理日常事务的负担越来越重。 行政机构日益膨胀,组织效率下降。 没有专业化的分工。 不利于发挥中层管理者的主动性和创造性。 钢纤维混凝土制作的原材料应考虑到钢纤维的握裹力,所以集料的最大粒径不超过钢纤维长度的()。 1/3倍。 2/3倍。 1倍。 1.5倍。 You manage a server that runs windows server 2008. The D:\payroll folder is corrupted. The most recent backup version is 10/29/2007-09:00. You need to restore all the files in the D:\Payroll folder back to the most recent backup version without affecting other folders on the server. What should you do on the server?() Run the recover d:\Payroll command.。 Run the WBadmin restore catalog-backuptarget:D:-version: 10/29/2007-09:00 coverwrite cquiet command.。 Run the wbadmin start recovery-backuptarget:D:-version: 10/29/2007 -09:00 coverwrite cquiet command.。 Run the wbadmin start recovery-version:10/29/2007 -09:00 –itemtype:file –file –items d:\payroll –overwrite –recursive cquiet command.。

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

参考答案:

  参考解析

本题暂无解析

在线 客服