|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#1. You write an XML Web service. The XML Web service contains Web methods that return large amounts of non-sensitive public data. The data is transferred over the Internet. You need to be able to detect if the data was tampered with during transit. The implementation must be configurable at run time. Your solution must minimize the impact on the performance of the Web service. What should you do?
Show comments for this question (0)
Add comments
Link to this question
|
|
#2. When you execute a client application, the following exception is thrown.EncryptedKeyToken is expected but not present in the security header of the incoming message.You discover that the exception is thrown when the client application invokes a Web service named Math with the following code. (Line numbers are included for reference only.) 01 try 02 { 03 MathWse^ ws = gcnew MathWse (); 04 int result = ws->Add(1, 2); 05 } 06 catch (Exception^ ex) 07 { 08 MessageBox::Show(ex->Message); 09 }
The client application and Web service have the same Web Services Enhancements (WSE) 3.0 policy. The policy configuration file contains the following policy section. <policy name="Secure"> <anonymousForCertificateSecurity establishSecurityContext="false" renewExpiredSecurityContext="true" requireSignatureConfirmation="false" messageProtectionOrder="SignBeforeEncrypt" requireDerivedKeys="true" ttlInSeconds="300"> <!-- XML defining the serviceToken and protection --> </anonymousForCertificateSecurity> </policy>
You need to ensure that the client application can communicate with the Web service. What should you do?
Show comments for this question (0)
Add comments
Link to this question
|
|
#4. You call a method in a Web service. The following exception is thrown in the Web service client.System.Web.Services.Protocols.SoapException: Server was unable toprocess request. --> System.NullReferenceException: Object reference not set to an instance of an object.You discover that it is the following line of code that throws the exception. if (Session ["StoredValue"] == null). You need to ensure that the method runs without throwing the exception. What should you do?
Show comments for this question (0)
Add comments
Link to this question
|
|
#6. A Web service application provides security data about employees to applications that control access to company facilities. The Web service is accessed by using TCP and is protected by using Web Services Enhancements (WSE) 3.0 security for message encryption. The company has added fingerprint readers to grant employees access to the facilities. Images of employee fingerprints are maintained by the Web service application. You need to ensure that the existing WSE security encryption policy can be applied to the fingerprint image. Your solution must minimize the size of the Web service message. What should you do?
Show comments for this question (0)
Add comments
Link to this question
|
|
#7. An assembly named SimpleMathLib is deployed to the Bin folder that is under a virtual directory named SimpleMathHost, which is on an IIS server named SERVER1. The SimpleMathLib assembly contains the following code. Public Class SimpleMathClass Inherits MarshalByRefObject Public Function Add(ByVal x As Double, ByVal y As Double) _ As Double Return x + y End Function End Class
The Web.config file under the SimpleMathHost virtual directory contains the proper configuration to host SimpleMath as a remoting object. You write a client Console Application and add a reference to the SimpleMathLib assembly. You need to ensure that the client Console Application calls the Add method on SERVER1 and returns the correct sum of the parameters to the Console Application. What should you do?
Show comments for this question (0)
Add comments
Link to this question
|
|
#8. A message queue named SecureQueue requires incoming messages to be authenticated. When an application attempts to send a message to SecureQueue, the following exception is thrown.User's internal Message Queuing certificate does not exist.The following code is used to send the message. (Line numbers are included for reference only.) 01 MessageQueue mq = new MessageQueue(".//SecureQueue"); 02 Message m = new Message("Test Message"); 03 m.UseAuthentication = true;04 mq.Send(m);
You need to ensure that a message can be sent to SecureQueue without the exception being thrown. What should you do?
Show comments for this question (0)
Add comments
Link to this question
|
|
#9. A Windows-based application receives messages from a message queue named PriorityQueue. The client application sets the Priority property on the message before sending it. However, received Message objects do not have the Priority property assigned. The following code is used to receive the messages. (Line numbers are included for reference only.) 01 MessageQueue^ queue = gcnew MessageQueue(".//PriorityQueue"); 02 Message^ m = queue->Receive(); 03 Console::WriteLine(m->Priority);
You need to ensure that the Windows-based application that receives the messages can access the Priority property. What should you do?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.128
|
Server date 04:46 08-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|