Online Access Free 070-503 Practice Test

Exam Code:070-503
Exam Name:TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation
Certification Provider:Microsoft
Free Question Number:270
Posted:Sep 02, 2026
Rating
100%

Question 1

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: IStoreCallback{ }
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?

Question 2

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?

Question 3

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to host the service in a medium trust environment on a Web server.
Which two bindings should you use? (Each correct answer presents a complete solution. Choose two.)

Question 4

Your company has a set of e-commerce services that were created by using Microsoft .NET Framework 3.5. The Windows Communication Foundation model was used to create the services.
The services include a catalog and a shopping cart that are deployed to the same physical server. The catalog is a stateless, single-instance service. The shopping cart is a reentrant, per-session service.
The catalog service contains the following code fragment.

The shopping cart service contains the following code fragment.

During peak hours, the number of simultaneous catalog requests increase. This prevents customers from updating their shopping carts. You need to ensure that the customers can update their shopping carts even during peak catalog request traffic.
Which set of code fragments should you use to replace the existing code fragments?

Question 5

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?

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.