What should you do to ensure that the SOAP signature is not invalidated when the SOAP message is routed?
You are writing a Web service application that uses Web Services Enhancements (WSE) 3.0 policies.
The Web service request and response data must be signed.
Routing occurs between the client and server computers, and uses the Action SOAP header of the SOAP messages.
You need to ensure that the SOAP signature is not invalidated when the SOAP message is routed.
What should you do?
Which two actions should you perform?
A Web service exposes the following Web method.
[WebMethod(CacheDuration=60)]
public byte[] GetImage(string imageId)
{
…
}
The Web method generates responses that are greater than 1 MB in size.
You need to configure the Web method to minimize memory usage on the server.
Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)
which Web services are hosted in IIS. What should you do?
You build Web services by using Microsoft Visual Studio 2005.
Some of the Web services are hosted in IIS.
You need to ensure that remote systems cannot dynamically discover which Web services are hosted in IIS.
What should you do?
Which two actions should you perform?
You write a client application that uses a Web service.
The Web service is hosted in a Windows service application.
The Web service can be called only by using TCP.
You are provided with the proxy that is enabled by Web Services Enhancements (WSE) 3.0.
The proxy was generated by adding a Web reference by using Microsoft Visual Studio 2005.
You need to ensure that the proxy calls the Web service correctly.
Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)
Which code segment should you use?
You are creating a Web service to expose the public methods on a class.
Two overloaded methods are defined in the class as follows:
public Customer GetCustomer(string custId)
public Customer GetCustomer(string name, string postalCode)
You need to expose both methods on the Web service.
Which code segment should you use?
Which code should you use?
You are creating a Web service.
You need to add an operation that can be called without returning a message to the caller.
Which code should you use?
Which code segment should you use?
A SOAP message has the following body.
<soap:Body>
<tns:Greeting>
<Person href="#id1" />
</tns:Greeting>
<tns:User id="id1" xsi:type="tns:User">
<GivenName xsi:type="xsd:string">givenname</GivenName>
<SurName xsi:type="xsd:string">surname</SurName>
</tns:User>
</soap:Body>
You need to configure the Greeting method to accept the SOAP message.
Which code segment should you use?
Which two actions should you perform?
A Windows-based application sends messages to the TestMessageQueue queue.
An acknowledgement message must be sent to the TestMessageQueueAdmin queue when:
The original message is retrieved from TestMessageQueue.
The message has not been retrieved from TestMessageQueue after a specified time period.
The following code is used to send a message to the TestMessageQueue queue.
(Line numbers are included for reference only.)
01 MessageQueue mq = new MessageQueue(".TestMessageQueue");
02 MessageQueue mqAdmin = new MessageQueue(".TestMessageQueueAdmin");
03 Message m = new Message(messageBody);
04 m.AcknowledgeType = AcknowledgeTypes.PositiveReceive;
05 mq.Send(m);
You need to ensure that an acknowledgement message is sent to the TestMessageQueueAdmin queue as required.
Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)
What are two possible ways to achieve this goal?
You use Microsoft Visual Studio 2005 to create a custom Web service discovery system that contains Disco files for your Web services.
You need to have the Disco file for each of your Web services for auditing purposes.
What are two possible ways to achieve this goal?
(Each correct answer presents a complete solution. Choose two.)
Which code segment should you use?
You create a Web service that exposes a Web method named CalculateStatistics.
The response returned by the CalculateStatistics method for each set of input parameters changes every 60 seconds.
You need to ensure that all requests to the CalculateStatistics method that have the same set of input parameters, and that occur within a 60-second time period, calculate the statistics only once.
Which code segment should you use?