Which two tasks should you perform?

You create a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5
The client application communicates with an existing Web service that requires custom HTTP headers.
You need to ensure that all messages sent to the service include the headers.
Which two tasks should you perform?
(Each correct answer presents part of the solution. Choose two.)

You create a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5
The client application communicates with an existing Web service that requires custom HTTP headers.
You need to ensure that all messages sent to the service include the headers.
Which two tasks should you perform?
(Each correct answer presents part of the solution. Choose two.)

A.
Create a message inspector.
Insert the custom headers by using the
IclientMessageInspector.AfterReceivedReply method.

B.
Create a message inspector.
Insert the custom headers by using the IClientMessageInspector.BeforeSendRequest method.

C.
Create a custom endpoint behavior.
Add the message inspector by using the IEndpointBehavior.ApplyClientBehavior method.

D.
Create a custom endpoint behavior.
Add the message inspector by using the IEndpointBehavior.AddBindingParameters method.



Leave a Reply 0

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