Microsoft 070-503 Actual Free Exam Questions & Community Discussion

  • Exam Code/Number: 070-503
  • Exam Name/Title: TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation
  • Certification Provider: Microsoft
  • Corresponding Certification: MCTS
  • Exam Questions: 270
  • Updated On: Jun 01, 2026
You are creating a Windows Communication Foundation (WCF) client application by using Microsoft .NET Framework 3.5.
The proxy generated for the WCF service results in the following code segment.

To implement a callback interface, you create the following class in the client application.
Public Class StoreCallback
Implements IStoreCallback End Class
The client application receives notifications from the service through the callback interface. You write the following code segment for the client application to use the generated proxy. (Line numbers are included for reference only.)
02 client. CheckAvailableProducts()
You need to set up duplex communication between the client application and the WCF service. Which code segment should you insert at line 01?
Correct Answer: D Vote an answer
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment.

The service uses a transactional binding. The TransactionFlow property for the binding is set to True. You need to ensure that the MyMethod method meets the following requirements: Which code segment should you insert at line 04?
Correct Answer: A Vote an answer
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You find that the service starts even though the endpoints have not been configured correctly. You need to create a custom service behavior that throws an exception if the list of endpoints that are configured is not complete. Which code segment should you use?
Correct Answer: A Vote an answer
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You find that the service starts even though the endpoints have not been configured correctly. You need to create a custom service behavior that throws an exception if the list of endpoints that are configured is not complete. Which code segment should you use?
Correct Answer: A Vote an answer
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?
Correct Answer: B Vote an answer
You are creating a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5. You add the following code segment to a service contract.

The DeleteDocument method in the service contract takes a long time to execute. The client application stops responding until the method finishes execution.
You write the following code segment to create an instance of a service proxy in the client application. (Line numbers are included for reference only.)

You need to ensure that the service methods are called asynchronously. What should you do?
Correct Answer: C Vote an answer
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You want to enable message logging. You add the following code fragment to the service configuration file.
<system.diagnostics> <sources> <source name="System. ServiceModel. Messagel_ogging">
<listeners> odd name="messages"
type="System. Diagnostics. XmlWriterTraceListener" />
</listeners> </source> </sources> </system.diagnostics>
You receive an exception. You need to successfully enable message logging. What should you do?
Correct Answer: B Vote an answer
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to ensure that data sent in a SOAP header is in the following XML format.
<Data> <string>String 1</string> <string>String 2</string> <string>String 3</string>
</Data>
Which code segment should you use?
Correct Answer: A Vote an answer
You are creating a client application that will call a Windows Communication Foundation service. The service was created by using Microsoft .NET Framework
3.5. You write the following code segment.

You plan to share the validation logic between the client application and the WCF service.
You need to generate a client-side service proxy that includes the validation logic.
Which four tasks should you perform? (Each correct answer presents part of the solution. Choose four.)
Correct Answer: A,D,E,F Vote an answer
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment.

You need to ensure that when the MyMethod method is called, the service is the root of a transaction. Which code segment should you insert at line 09?
Correct Answer: B Vote an answer
0
0
0
10