You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML

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 (Choose 2)

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 (Choose 2)

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.



Leave a Reply 0

Your email address will not be published. Required fields are marked *