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 Extensible Markup Language (XML) Web Services forms part of your responsibilities at Domain.com.
After receiving instructions you have just completed the development and the deployment of an Extensible Markup Language (XML) Web service application. This XML Web service application contains ten (10) Web services. At present dynamic discovery on the Web server that hosts the application has been disabled. To this end you now need to configure the Web.config file of the application to allow Web service clients the ability to dynamically discover all the Web services. You also want to ensure that the Web service clients will be able to discover any future Web services that will be added.

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

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 Extensible Markup Language (XML) Web Services forms part of your responsibilities at Domain.com.
After receiving instructions you have just completed the development and the deployment of an Extensible Markup Language (XML) Web service application. This XML Web service application contains ten (10) Web services. At present dynamic discovery on the Web server that hosts the application has been disabled. To this end you now need to configure the Web.config file of the application to allow Web service clients the ability to dynamically discover all the Web services. You also want to ensure that the Web service clients will be able to discover any future Web services that will be added.

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

A.
<configuration>
<system.web>
<httpHandler>
<add verb=”x.disco”
Type=System.Web.Services.Discovery.DiscoveryRequestHandler, System.Web.Services,Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”
validate=”false”/>
</httpHandlers>
</system.web>
</configuration>

B.
<configuration>
<system.web>
<httpHandler>
<add verb=”x.vsdisco”
Type=System.Web.Services.Discovery.DiscoveryRequestHandler, System.Web.Services,Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”
validate=”false”/>
</httpHandlers>
</system.web>
</configuration>

C.
<configuration>
<system.web>
<httpHandler>
<add verb=”x.wsdl”
Type=System.Web.Services.Discovery.DiscoveryRequestHandler, System.Web.Services,Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”
validate=”false”/>
</httpHandlers>
</system.web>
</configuration>

D.
<configuration>
<system.web>
<httpHandler>
<add verb=”x.asmx”
Type=System.Web.Services.Discovery.DiscoveryRequestHandler, System.Web.Services,Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”
validate=”false”/>
</httpHandlers>
</system.web>
</configuration>

Explanation:
An Http handler should be added for all .vsdisco files. DiscoveryRequestHandler is the default handler class in ASP.NET 2.0. A file with the .vsdicso extension will allow a Web service client to dynamically discover all Web services that exist at and below the virtual directory that contains the document.
Incorrect answers:
A: A .disco file extension denotes a static discovery document. You will need to manually specify the Web services that should be discovered in this document. This will result in clients being unable to automatically discover the Web services that will be added in future.
C: A .wsdl handler denotes a Web Services Description Language (WSDL) document. This type of file will not provide for dynamic discovery of Web services.
D: An .asmx handler denotes a Web service endpoint and will thus not provide clients with the ability to automatically discover Web services.



Leave a Reply 0

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