PrepAway - Latest Free Exam Questions & Answers

What should you do?

A Web service application uses Web Services Enhancements (WSE) 3.0. A class named RejectUnknownActorFilter is derived from the SoapFilter class.
The RejectUnknownActorFilter class throws a SoapException exception if the request contains an unexpected actor.
A class defines a policy assertion as follows.

(Line numbers are included for reference only.)
01 public class RequireActorAssertion : PolicyAssertion {
02 public override SoapFilter
03 CreateClientInputFilter(FilterCreationContext context) {
04 return null;
05 }
06 public override SoapFilter
07 CreateClientOutputFilter(FilterCreationContext context) {
08 return null;
09 }
10 public override SoapFilter
11 CreateServiceInputFilter(FilterCreationContext context) {
12 return null;
13 }
14 public override SoapFilter
15 CreateServiceOutputFilter(FilterCreationContext context) {
16 return null;
17 }
18 }

You need to ensure that the Web service rejects any SOAP request that contains an unexpected actor.
Your code must minimize the server resources used to process the request.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Replace line 04 with the following line of code.
return new RejectUnknownActorFilter();

B.
Replace line 08 with the following line of code.
return new RejectUnknownActorFilter();

C.
Replace line 12 with the following line of code.
return new RejectUnknownActorFilter();

D.
Replace line 16 with the following line of code.
return new RejectUnknownActorFilter();


Leave a Reply