A Web Services Enhancements (WSE) 3.0 router application uses a referral cache to make routing decisions.
When a client application sends a SOAP message to the WSE router application, the following exception is thrown.
Microsoft.Web.Services3.Addressing.AddressingFault: MessageInformation Header RequiredThe referral cache used by the WSE router application is as follows:
<?xml version=”1.0″ ?>
<r:referrals xmlns:r=”http://schemas.xmlsoap.org/ws/2001/10/referral”>
<r:ref>
<r:for>
<r:exact> http://www.contoso.com/WSERouter/Service.asmx </r:exact>
</r:for>
<r:if />
<r:go>
<r:via> http://www.contoso.com/WSEService/Service.asmx </r:via>
</r:go>
<r:refId> uuid:fa469956-0057-4e77-962a-81c5e292f2ae </r:refId>
</r:ref>
</r:referrals>
You need to ensure that a SOAP message can be sent to the WSE router application without throwing the AddressingFault exception.
What should you do?
A.
Set the AllowAutoRedirect property on the Web service client proxy to True.
B.
Change the Web service client proxy class definition so that it is derived from the Microsoft.Web.Services3.WebServicesClientProtocol class.
C.
Set the ConnectionGroupName property on the Web service client proxy to Allow Routing.
D.
Set the UserAgent property on the Web service client proxy to WSE 3.0.