You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003.
The development and deployment of Client applications forms part of your responsibilities at Domain.com. You are currently developing a Microsoft Windows Forms client application that will retrieve data from an Extensible Markup Language (XML) Web Service. This XML Web Services requires Kerberos authentication. To this end you use the Web Services Enhancements (WSE) 3.0 proxy generation tool (wsewsdl3.exe) to generate a proxy to the Web service. You then create a policy file named policies.config. Policies.config specifies the authentication requirements.
You now need to specify the policy file in the app.config file What should you do? (Choose the correct configuration.)
A.
<configuration>
<appSettings>
<add key=”microsoft.web.services3″value=”policies.config”/> </appSettings>
</configuration>
B.
<configuration>
<appSettings>
<add key=”wse3″value=”policies.config”/>
</appSettings>
</configuration>
C.
<configuration>
<microsoft.web.services3>
<policy filename=”policies.config”/>
</microsoft.web.services3>
</configuration>
D.
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type=”policies.config”/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>
Explanation:
A microsoft.web.services3 element should be added to the Web.config file and you should apply the policy element to that element. You should also specify the policies.config file as the value of the filename attribute of the policy element. This will result in the WSE runtime to load the policies that are defined in the policies.config file.
Incorrect answers:
A: The policy file name should not be specified in the appSettings element because the WSE runtime does not use this element.
B: The policy file name should not be specified in the appSettings element. Even though you use this element to specify application-specific configuration information, the WSE runtime does not use this element.
D: The policies.config should not be specified as a SOAP extension type. The WSE runtime does not process the soapExtensionTypes element to load policy files.C#, Creating and Accessing a Serviced Component and Using Message Queuing (8 Questions)