搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

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

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.<br /> The client application contains the following code.<br /> <br /> [ServiceContract]<br /> public interface ISocialStatus<br /> {<br /> [OperationContract]<br /> [WebInvoke(UriTemplate = "/statuses/update.xml?status-{text}")]<br /> void UpdateStatus(string text);<br /> }<br /> public class SocialClient : ClientBase<isocialstatus>, ISocialStatus<br /> {<br /> ...<br /> }<br /> The configuration file contains the following lines.<br /> <system.servicemodel><client><endpoint address="http://contoso.com" br="" name="SocialClient">binding="webHttpBinding" contract="SocialApp.ISocialStatus"<br /> bindingConfiguration="BindingConfig" /></endpoint></client></system.servicemodel><br /> You need to ensure that the service is consumed.<br /> Which code segment should you use?()</isocialstatus>”相关的问题
第7题

A、A. Set the serviceAuthorizationAuditLevel setting to Success and the messageAuthenticationAuditLevel setting to Success.  B、B. Set the messageAuthenticationAuditLevel setting to Success and the auditLogLocation setting to Application.  C、C. Set the serviceAuthorizationAuditLevel setting to SuccessAndFailure and the messageAuthenticationAuditLevel setting to SuccessAndFailure.  D、D. Set the messageAuthenticationAuditLevel setting to SuccessAndFailure and the auditLogLocation setting to Security.  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服