PrepAway - Latest Free Exam Questions & Answers

Category: 70-569

Exam 70-569: UPGRADE: Transition your MCPD Enterprise Application Developer Skills to MCPD Enterprise Application Developer 3.5, Part 2

Which code segment should you add?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You have successfully defined a service contract named IManageOrders. You write the following code segment.

public class OrderImpl : IManageOrders {
public void MarkOrderClosed(int orderId){
try {

}
catch (SqlException exc){
throw new FaultException<DataFault>(new DataFault()); }}}
[DataContract]

public class DataFault {
}

You need to create a fault contract for the MarkOrderClosed method on the IManageOrders service contract. Which code segment should you add?

You need to ensure that the ProcessString method can be invoked from a Web browser by using the URL http://loc

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

01 public interface IMyService
02 {
04 string ProcessString(string name);
05 }

You create a host for the WCF service.
You also create a service endpoint at http://localhost:8080/service.
You add an instance of the HttpTransferEndPointBehavior class to the host.
You need to ensure that the ProcessString method can be invoked from a Web browser by using the URL http://localhost:8080/service/process?name=value
Which code segment should you insert at line 03?

Which code segment should you insert at line 04?

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

01 public void PutMessage(Message msg)
02 {
03 string value=null;
05 }

You need to retrieve the content from the received message body and store it in the variable named value. Which code segment should you insert at line 04?

Which code segment should you use?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be hosted on a Web server. You add the following code fragment to the .svc file.
<% @ServiceHost Factory=”ExamServiceFactory” Service=”ExamService” %>
You need to create the instances of the services by using the custom ExamServiceFactory class.
Which code segment 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. You write the following code segment. (Line numbers are included for reference only.)

01 [ServiceContract(Namespace=”http://uri.contoso.com”)] 02 public interface IMyService
03 {
04 [OperationContract]
05 string ProcessDetails(string s);

06 [OperationContract(Action=”UpdateStatus”)]
07 void UpdateStatus();
09 }

If the existing operation contract is unable to process a request made to the service, a generic operation contract must attempt to process the request. You need to create the generic operation contract. Which code segment should you insert at line 08?

Which configuration settings should you use?

You are creating a distributed client application by using Microsoft .NET Framework 3.5. You use Windows Communication Foundation (WCF) to create the application. You specify the following configuration settings for the service application.

<serviceCredentials>
<userNameAuthentication
userNamePasswordValidationMode=”MembershipProvider” membershipProviderName=”SqlMembershipProvider”/>
</serviceCredentials>

You need to authenticate the client application by using the Microsoft ASP.NET membership provider. Which configuration settings should you use?

Which code fragment should you insert at line 03?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code fragment for the configuration setting. (Line numbers are included for reference only.)

01 <wsHttpBinding>
02 <binding name=”simple”>
04 </binding>
05 </wsHttpBinding>

You need to ensure that the service uses transport security and allows access to anonymous client applications. Which code fragment should you insert at line 03?

What should you do?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application will be used by multiple types of users. The application will also interact with external applications. You need to design the interaction among the application, the users of the application, and the external applications. What should you do?

Which three actions should you perform next?

You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. You need to host the WCF service on the IIS Web server. First, you create a new folder for your application files. Next, you use the IIS management tool to create a Web application in the new folder. Which three actions should you perform next? (Each correct answer presents part of the solution. Choose three.)


Page 3 of 1412345...10...Last »