70-503 TS Braindump
ExamSoon 70-503 Exams
Microsoft TS: Microsoft .NET Framework 3.5 - Windows Communication Foundation
O rder : 70-503 Exam
Practice Exam: 70-503
Exam Number/Code: 70-503
Exam Name: TS: Microsoft .NET Framework 3.5 - Windows Communication
Foundation
Questions and Answers: 150 Q&As
Free 70-503 Braindumps
Exam : Microsoft 70-503
Title : TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation
1. 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();
08
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?
A. [OperationContract(Action="*")]
void ProcessOthers(Message msg);
B. [OperationContract(Action="*")]
void ProcessOthers();
C. [OperationContract(Action="Default")]
void ProcessOthers(Message msg);
D. [OperationContract(Action="Default")]
void ProcessOthers();
Answer: A
2. You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to ensure that the service can send data in the following format to the client applications.
<Account Id="">
<Name> </Name>
<Balance Currency=""> </Balance>
</Account>
Which code segment should you use?
A. [Serializable]
public class Account
{
[XmlAttribute]
public string Id;
[XmlElement]
public string Name;
[XmlAttribute]
public string Currency;
[XmlElement]
public double Balance;
}
B. [DataContract]
public class Account
{
[DataMember(Order=0)]
public string Id;
[DataMember(Order=1)]
public string Name;
[DataMember(Order=0)]
public double Ba