多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You are developing a WCF service. The service includes an operation names GetProduct. You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML.   Which two actions should you perform?()

  • A、Add the WebGet attribute to the service contract.
  • B、Set WebOperationContext.Current.OutgoingRequest.ContentType to "text/xml" in the GetProduct method.
  • C、Add the WebInvoke attribute to the service contract.
  • D、Set WebOperationContext.Current.OutgoingResponse.ContentType to "text/xml" in the GetProduct method.
正确答案:C,D
答案解析:
进入题库查看解析

微信扫一扫手机做题