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 is a Publishing and distribution company and works in joint ventures with many book stores that carries it products.
The provision of stock on hand updates to third party companies (the book stores) forms part of your responsibilities at Domain.com. You are currently developing an Extensible Markup Language (XML) Web Service that provides stock on hand updates. To this end you created a Web method named GetStock that accesses the third party company’s XML Web service to retrieve the required information. Following are some factors that you need to keep in mind:
1. The third parties’ XML Web Service updates it information regarding stocks once every hour.
2. Domain.com is charged for each call to the third party Web service.

It is thus essential that you limit the number of calls that the Domain.com Web service makes to the third party company’s Web service:
1. Thus you apply the Webmethod attribute to the GetStock method.
2. You need to configure the attribute to limit the number of calls to the third party Web service.
3. You must ensure that no cookies are required.

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 is a Publishing and distribution company and works in joint ventures with many book stores that carries it products.
The provision of stock on hand updates to third party companies (the book stores) forms part of your responsibilities at Domain.com. You are currently developing an Extensible Markup Language (XML) Web Service that provides stock on hand updates. To this end you created a Web method named GetStock that accesses the third party company’s XML Web service to retrieve the required information. Following are some factors that you need to keep in mind:
1. The third parties’ XML Web Service updates it information regarding stocks once every hour.
2. Domain.com is charged for each call to the third party Web service.

It is thus essential that you limit the number of calls that the Domain.com Web service makes to the third party company’s Web service:
1. Thus you apply the Webmethod attribute to the GetStock method.
2. You need to configure the attribute to limit the number of calls to the third party Web service.
3. You must ensure that no cookies are required.

What should you do?

A.
The CacheDuration property should be set to 3600

B.
The EnableSession property should be set to true.

C.
The MessageName property should be set to “ClientCache”.

D.
The BufferResponse property should be set to false.

Explanation:
This property specifies the number of seconds that a response from a Web method should be cached on a server. With this property set to 3600, you will limit the number of calls to the third party Web service by limiting the number of invocations of your GetStock Web method to once every hour.
Incorrect answers:
B: The EnableSession property indicates whether a session should be enabled to the Web method. Server-side session state, which includes the Application and Session objects, can use a lot a memory on the Web server. Session state requires the use of cookies as well. Thus you should not use this property.
C: The MessageName property distinguishes overloaded Web methods. In Web services Description Language (WSDL) documents, each Web method must be named uniquely and the MessageName property is involved in meeting this requirement. This is not what should happen in this scenario.
D: The BufferResponse property determines whether the entire response is placed in memory on the server before it is sent to the Web Service client. You should thus not set this property to false.



Leave a Reply 0

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