多项选择题
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.
相关考题
-
单项选择题
You are developing an ASP.NET Web application.The application is configured to use the membership and role providers. You need to allow all users to perform an HTTP GET for application resources, but you must allow only the user named Moderator to perform a POST operation. Which configuration should you add to the web.config file?()
A.
B.
C.
D. -
单项选择题
You are developing an ASP.NET Web application. The application must pass an object that contains user-specific data between multiple pages. The object ismore than 100 KB in size when serialized.You need to minimize the amount of data is sent to the user. What should you do?()
A.Pass the object data in a hidden field.
B.Store the object instance in a session variable.
C.Use a cookie that contains the object data.
D.Encode the object data and pass it in a query string parameter. -
单项选择题
Youhavemigratedawebapplicationfrom.net3.5to4.0.theapplicationhattorendersameasin.net3.5.()
A.<assembles> someoptions </assembles>
B.<pages controlRenderingCompatibilityVersion="3.5"/>
C.<compilation targetframework = "3.5" />
D.<xhtmlConformance mode="Legacy" />
