PrepAway - Latest Free Exam Questions & Answers

What should you do?

You work as the Enterprise application 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. Your responsibilities at Domain.com include the design and development of applications. You are currently developing an Extensible Markup Language (XML) Web service that when completed will allow client applications the ability to download movie clips. One of the requirements that should be met is that all Web service clients must be able to use the Web service. You should also keep in mind that you should optimize the message transfer for some of the movie clips since fifty percent of the movie clips are quite large.
To this end you decide to make use of Microsoft Visual Studio 2005 and Web Services Enhancements (WSE) 3.0 to develop the Web service. Now you need to modify the Web.config file to meet the requirements.

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

PrepAway - Latest Free Exam Questions & Answers

A.
<configuration>
<configuration.web.services3>
<mtom serverMode=”optional”/>
</microsoft.web.services3>
</configuration>

B.
<configuration>
<configuration.web.services3>
<mtom serverMode=”always”/>
</microsoft.web.services3>
</configuration>

C.
<configuration>
<configuration.web.services3>
<mtom serverMode=”on”/>
</microsoft.web.services3>
</configuration>

D.
<configuration>
<configuration.web.services3>
<mtom serverMode=”never”/>
</microsoft.web.services3>
</configuration>

Explanation:
WSE 3.0 allows one to make use of Message Transmission Optimization Mechanism (MTOM) to encode and transmit large amounts of binary data. MTOM allows one to transmit binary messages in binary form without the need to encode them in a text format. It is necessary that the client application support MTOM to be able to use it. You also set MTOM in a Web service by setting the serverMode attribute of the mtom element. This attribute supports three values: optional, never and always. However, if MTOM is used in this way, the message transfer is not optimized, thus the attribute should be set to optional.
Incorrect answers:
B: The serverMode attribute should be set to optional, for if set to always, you need the Web service client to support MTOM and not all Web service clients supports MTOM.
C: The serverMode attribute should be set to optional, for if set to on, the attribute will determine whether MTOM is supported by the Web service client and in this scenario you are configuring the Web service.
D: The serverMode attribute should be set to optional, for if set to never, this attribute will indicate that MTOM should not be enabled for incoming Simple Object Access Protocol (SOAP) requests.

VB, Designing and Developing an Application Framework (9 Questions)


Leave a Reply