Which two actions should you perform?

A Web service exposes the following Web method.

[WebMethod(CacheDuration=60)]
public byte[] GetImage(string imageId)
{

}

The Web method generates responses that are greater than 1 MB in size.
You need to configure the Web method to minimize memory usage on the server.

Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)

A Web service exposes the following Web method.

[WebMethod(CacheDuration=60)]
public byte[] GetImage(string imageId)
{

}

The Web method generates responses that are greater than 1 MB in size.
You need to configure the Web method to minimize memory usage on the server.

Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)

A.
Apply a SoapDocumentMethod attribute to the method declaration with the ParameterStyle property set to SoapParameterStyle.Wrapped.

B.
Apply a SoapDocumentMethod attribute to the method declaration with the ParameterStyle property set to SoapParameterStyle.Bare.

C.
Set the BufferResponse property of the WebMethod attribute to True.

D.
Set the BufferResponse property of the WebMethod attribute to False

E.
Set the value of the CacheDuration property of the WebMethod attribute to 0.

F.
Set the value of the CacheDuration property of the WebMethod attribute to 300.



Leave a Reply 0

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