Which of the following code segments will you use to accomplish the task?

Posted by: Pdfprep Category: GSSP-.NET Tags: , ,

You work as a Software Developer for ManSoft Inc. You use Microsoft Visual Studio to create a Web service named MyWebService. You create a SOAP message that is not

secure in the Web service. You want to use the ReceiveSecurityFilter class in the Web service to handle the receiving and securing of SOAP messages.

Which of the following code segments will you use to accomplish the task? Each correct answer represents a part of the solution. Choose all that apply.
A . public class MyReceiveSecurityFilter : ReceiveSecurityFilter
{
public MyReceiveSecurityFilter(string service, Boolean client)
{
base(service, client);
}
public override void ValidateMessageSecurity(SoapEnvelope envelope, Security security)
{
// Implementation validation here
}
}

B . public class MyReceiveSecurityFilter : ReceiveSecurityFilter
{
public MyReceiveSecurityFilter(string service, Boolean client) : base(service, client) { }
public override void ValidateMessageSecurity(SoapEnvelope envelope, Security security)
{
// Implementation validation here
}
}

C . public class MyReceiveSecurityFilter : ReceiveSecurityFilter
{
public MyReceiveSecurityFilter(string service, Boolean client)
{ }
public override void ValidateMessageSecurity(SoapEnvelope envelope, Security security) {
// Implementation validation here
}
}
D . public class MyReceiveSecurityFilter : ReceiveSecurityFilter
{
public MyReceiveSecurityFilter(string service, Boolean client) : base(service, client) { }
public void ValidateMessageSecurity(SoapEnvelope envelope, Security security)
{
// Implementation validation here
}
}

Answer: A,B

Leave a Reply

Your email address will not be published.