What should you do?

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 client application that will retrieve data from two Extensible Markup Language (XML) Web Services.
1. The one Web service requires the use of username/password authentication.
2. The other Web service requires the use of Kerberos authentication. You make use of the Web Services Enhancements (WSE) 3.0 proxy generation tool (wsewsdl3.exe) to generate the proxies to the two Web services that requires the different authentications. To this end you create a policy file that specifies the authentication requirements. Now you need to ensure that the requirements are enforces when you call each of the Web services.
What should you do? (Each correct answer presents part of the solution. Choose two.)

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 client application that will retrieve data from two Extensible Markup Language (XML) Web Services.
1. The one Web service requires the use of username/password authentication.
2. The other Web service requires the use of Kerberos authentication. You make use of the Web Services Enhancements (WSE) 3.0 proxy generation tool (wsewsdl3.exe) to generate the proxies to the two Web services that requires the different authentications. To this end you create a policy file that specifies the authentication requirements. Now you need to ensure that the requirements are enforces when you call each of the Web services.
What should you do? (Each correct answer presents part of the solution. Choose two.)

A.
Call the SetPolicy method on each proxy.

B.
Apply a policy attribute to the class that contains the proxy instance.

C.
Pass the policy file name to this method.

D.
Pass the name of the policy to use this method.

E.
Pass the name of this policy to this attribute.

Explanation:
You should call the SetPolicy method on each proxy, passing to it the name of the policy to use wsewsdl3.exe generated Web service classes are derived from WebServicesClientProtocol. This base class defines a SetPolicy method that enables you to programmatically set the policy for the proxy.
Incorrect answers:
B: You should not apply the policy attribute to the class that contains the proxy instance.
C: The policy file name should not be specified as a parameter to the SetPolicy method. One specifies the name of a policy, not the file that contains the policy.
E: Policy attributes should be applied to either Web Service classes or Web Service proxy classes.



Leave a Reply 0

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