YouaredevelopingaWCFservice.TheserviceincludesanoperationnamesGetProduct.YouneedtoensurethatGetProductwillacceptaPOSTrequestandwillindicatethatthereturneddataisXML.Whichtwoactionsshouldyouperform?() A.AddtheWebGetattributetotheservicecontract.B.SetWebOperationContext.Current.OutgoingRequest.ContentTypetotext/xmlintheGetProductmethod.C.AddtheWebInvokeattributetotheservicecontract.D.SetWebOperationContext.Current.OutgoingResponse.ContentTypetotext/xmlintheGetProductmethod.

YouaredevelopingaWCFservice.TheserviceincludesanoperationnamesGetProduct.YouneedtoensurethatGetProductwillacceptaPOSTrequestandwillindicatethatthereturneddataisXML.Whichtwoactionsshouldyouperform?()

A.AddtheWebGetattributetotheservicecontract.

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

C.AddtheWebInvokeattributetotheservicecontract.

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


相关考题: