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.
Domain.com operates as a pharmaceutical company with many branch offices that are located worldwide.
The development and deployment of Extensible Markup Language (XML) Web Services forms part of your responsibilities at Domain.com. You have just developed and deployed an Extensible Markup Language (XML) Web Service that will allow other companies to submit encrypted SOAP messages to Domain.com. The assembly that contains the Web service also contains a SOAP extension class named EncryptionExtension that decrypts the SOAP messages that represents the medical records. Due to the size of some of the messages, you implemented a second SOAP extension class named CompressionExtension that decompresses compressed SOAP messages. This class exists in the SoapUtilities namespace in an assembly named SoapUtilities.dll
You must modify the Web.config file for the Web service to ensure that decompression occurs before decryption.

What should you do? (Choose the correct configuration from the given options.)

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.
Domain.com operates as a pharmaceutical company with many branch offices that are located worldwide.
The development and deployment of Extensible Markup Language (XML) Web Services forms part of your responsibilities at Domain.com. You have just developed and deployed an Extensible Markup Language (XML) Web Service that will allow other companies to submit encrypted SOAP messages to Domain.com. The assembly that contains the Web service also contains a SOAP extension class named EncryptionExtension that decrypts the SOAP messages that represents the medical records. Due to the size of some of the messages, you implemented a second SOAP extension class named CompressionExtension that decompresses compressed SOAP messages. This class exists in the SoapUtilities namespace in an assembly named SoapUtilities.dll
You must modify the Web.config file for the Web service to ensure that decompression occurs before decryption.

What should you do? (Choose the correct configuration from the given options.)

A.
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type=”SoapUtilities.CompressionExtension,SoapUtilities” Priority=”0″
Group=”1″/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>

B.
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type=”SoapUtilities.CompressionExtension,SoapUtilities” Priority=”1″
Group=”1″/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>

C.
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type=”SoapUtilities.CompressionExtension,SoapUtilities” Priority=”1″
Group=”0″/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>

D.
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type=”SoapUtilities.CompressionExtension,SoapUtilities” Priority=”2″
Group=”1″/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>

Explanation:
You can either apply a SoapExtension-derived attribute to a Web method or specify the SOAP extension in the Web.config file when configuring a Web service to use SOAP extensions. When specified in the Web.config file, the extension is executed for all Web methods defined for the Web service. The execution processing order of SOAP extensions are:
1. All SOAP extensions that are members of group 0 are executed.
2. All SOAP extensions that are specified declaratively as attributes are executed.
3. All SOAP extensions that are members of group 1 are executed.
Incorrect answers:
A, B, C: You should not set the group number to 1 as it will result in decompression to occur after decryption.

C#, Creating, Configuring, and Deploying Remoting Applications (7 Questions)



Leave a Reply 0

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