PdfPrep.com

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

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 SendSecurityFilter class in the Web service to handle the transmission 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 MySendSecurityFilter : SendSecurityFilter
{
public MySendSecurityFilter(string service, Boolean client)
{ }
public override void SecureMessage(SoapEnvelope envelope, Security security) {
// Implement validation here
}
}
B . public class MySendSecurityFilter : SendSecurityFilter
{
public MySendSecurityFilter(string service, Boolean client)
{
base(service,client);
}
public override void SecureMessage(SoapEnvelope envelope, Security security)
{
// Implement validation here
}
}

C . public class MySendSecurityFilter : SendSecurityFilter
{
public MySendSecurityFilter(string service, Boolean client) : base(service,client) { }
public override void SecureMessage(SoapEnvelope envelope, Security security) {
// Implement validation here
}
}

D . public class MySendSecurityFilter : SendSecurityFilter
{
public MySendSecurityFilter(string service, Boolean client) : base(service,client) { }
public void SecureMessage(SoapEnvelope envelope, Security security)
{
// Implement validation here
}
}

Answer: B,C

Exit mobile version