PrepAway - Latest Free Exam Questions & Answers

Category: 70-503

Exam 70-503: TS: Microsoft .NET Framework 3.5 – Windows Communication Foundation Application Development

Which code segment should you use to implement the service?

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You write the following code segment.
[ServiceContract(SessionMode=SessionMode.Required)]
public interface IOrderManager
{
[OperationContract]
void UpdateOrder(int orderId);
[OperationContract]
void ProcessOrder(int orderId);
}
You need to ensure that the service commits the transaction only when the session is closed.
Which code segment should you use to implement the service?

Which code segment should you insert at line 04?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will expose a method named DoProcess to the client applications.
You write the following code segment. (Line numbers are included for reference only.)
01 [ServiceContract]
02 public interface IMyService
03 {
04
05 }
You need to ensure that the client applications are not required to obtain results from the DoProcess method.
Which code segment should you insert at line 04?

Which binding object should you use?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application exposes a Windows Communication Foundation (WCF) service that will be consumed by an ASP.NET application. The WCF application and the ASP.NET application will be

deployed on the same server. You need to ensure that the WCF service meets the following requirements:

The communication between the applications incurs minimum latency. The binding satisfies the ordered delivery constraint that is specified in the service implementation by using the DeliveryRequirements attribute.

Which binding object should you use?

Which code segment should you insert at line 08?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service has an operation contract named GetMessage. You write the following code segment to implement the service. (Line numbers are included for reference only.)

01 public Message GetMessage()
02 {
03 Message msg=null;
04 string action="GetMessageResponse";
05 MessageVersion ver=MessageVersion.Default;
06 FileStream stream=new FileStream(@"D:File.xml", 07 FileMode.OpenOrCreate);
09 return msg;
10 }

You need to send the contents of the File.xml file to a client application by using the SOAP body.
Which code segment should you insert at line 08?

Which code segment should you insert at line 05?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You create the following service contract. (Line numbers are included for reference only.)

01 [ServiceContract]
02 public interface IMyService
03 {
04 [OperationContract]
06 List<string> GetData(int index);
07 }

You need to ensure that the GetData operation can be accessed by using the URI in the following manner:

GetData/1 for the index value 1
GetData/2 for the index value 2
..
GetData/n for the index value n

Which code segment should you insert at line 05?

Which hosting environment should you use?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. You configure the Windows Communication Foundation (WCF) service to be exposed by using the HTTP and TCP endpoints. You plan to deploy the WCF service. You need to identify the host environment that provides the following services:

Message-based activation
Health management
Process recycling capabilities

Which hosting environment should you use?


Page 3 of 1112345...10...Last »