PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

A .NET Framework remoting server hosts a class library that contains the following class.

public class SimpleMathClass : MarshalByRefObject
{
public void LogData(DataRow dr)
{
//Lengthy database calls …
}
}

Users of a Windows-based client application report that the application often becomes nonresponsive.
You discover that the application makes calls to the LogData method that take several seconds to return.
You need to ensure that calls to the LogData method can be processed without causing the client application to become nonresponsive.

What should you do?

What should you do?

A .NET Framework remoting application must host two linked-list collections, including one collection of integers and one collection of strings.
Both collections must be instances of a single collection type.
The application must be configured so that there is only one instance of each collection at run time.
You need to implement a linked-list collection type that meets these requirements.

What should you do?

What should you do?

You are debugging a .NET Framework remoting application in Microsoft Visual Studio 2005.
Your solution contains three projects as follows:
SimpleMathLib is a class library project.
SimpleMathLib contains the remoting classes that will compile to a common assembly.
SimpleMathHost is a Windows service project.

SimpleMathHost is installed on your computer and it hosts SimpleMathLib.
SimpleMathClient is a Windows Forms application project.
SimpleMathClient is the remoting client application.

When you run the SimpleMathClient application, you receive an error message.
You set a breakpoint in the SimpleMathLib class library where you suspect the error.
When you run SimpleMathClient in the debugger, the error occurs again, and the debugger does not stop on the breakpoint.
You confirm that the breakpoint has been configured correctly.
You need to ensure that you can hit the breakpoint and step through the code.

What should you do?

What should you do?

You write a Web service that processes multiple SOAP headers, including one named HeaderA.
You examine the HTTP log and find that an unknown SOAP header is included in the client application requests.
Your Web service must process all headers.
You need to indicate to the client application that the unknown SOAP header is unexpected.

What should you do?

What should you do?

You are creating a Web service.
The Web service must be configured to receive the following message.

<soap:Envelope xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”>
<soap:Body>
<givenName xmlns=”urn:SampleNS”>given name</givenName>
<surname xmlns=”urn:SampleNS”>surname</surname>
</soap:Body>
</soap:Envelope>

You need to ensure that the Web Services Description Language (WSDL) for the Web service describes the message.

What should you do?