itgle.com

YouaredevelopingaWCFservice.TheserviceincludesanoperationnamesGetProduct.YouneedtoensurethatGetProductwillacceptaPOSTrequestandwillindicatethatthereturneddataisXML.Whichtwoactionsshouldyouperform?()A.AddtheWebGetattributetotheservicecontract.B.SetWebOpera

题目
YouaredevelopingaWCFservice.TheserviceincludesanoperationnamesGetProduct.YouneedtoensurethatGetProductwillacceptaPOSTrequestandwillindicatethatthereturneddataisXML.Whichtwoactionsshouldyouperform?()

A.AddtheWebGetattributetotheservicecontract.

B.SetWebOperationContext.Current.OutgoingRequest.ContentTypeto"text/xml"intheGetProductmethod.

C.AddtheWebInvokeattributetotheservicecontract.

D.SetWebOperationContext.Current.OutgoingResponse.ContentTypeto"text/xml"intheGetProductmethod.


相似考题