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?
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 following exhibit illustrates the class definition for a data processing Web service:
Exhibit:
[WebService(Namespace-“urn:DataProcessingService”)] Public class DataProcessingService : Webservice
{
[WebMethod(MessageName-“ProcessDataSet”)]
Public void Process(DataSet dataset)
{
}
}
You have been instructed to apply an attribute to the Process method that will result in an immediate return to the caller without invoking a SOAP response. You need to ensure that the attribute that you apply in your solution is Web Services-Interoperability (WS-1) compliant. You thus need to make use of a code segment.
What should you do?
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 access control to Web services is part of your responsibility. To this end you are currently exposing an existing class as an Extensible Markup Language (XML) Web service. You need to ensure that this Web service is accessible exclusively accessible to Web service clients within the Domain.com domain. To comply with this requirement you need to change the access modifiers on methods that must be exposed as Web methods.
What should you do?
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 SOAP extension to monitor a deployed Web service.
You need to deploy the SOAP extension to the Web service without requiring a change to the compiled assemblies.
You cannot use reflection to deploy the SOAP extension.
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 by using ASP.NET.
You need to ensure that the Web Services Description Language (WSDL) file that is generated is Web services interoperability (WS-I) compliant and that it allows message validation.
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?