Thursday, December 1, 2011

MCITP to move the examination

twenty. That you are making a Windows Communication Foundation (WCF) support through the use of Microsoft . Internet Framework 3.five.
You configure a binding to enable streaming.
You'll need to be sure the customer software has the capacity to stream considerable XML information to the WCF support.
Which operation agreement in case you produce?
A. <OperationContract()> _
Sub UploadFile(ByVal xmlData As Stream)
B. <OperationContract()> _
Sub UploadFile(ByVal xmlData As XmlWriter)
Do. <OperationContract()> _
Sub UploadFile(ByVal xmlData As StreamWriter)
D. <OperationContract()> _
Sub UploadFile(ByVal xmlData As Byte())
Answer: A
21. You produce a Windows Communication Basis services through the use of Microsoft . Internet Framework 3.five.
You compose the subsequent code phase. (Line quantities are bundled for reference only.)
01 [ServiceContract(SessionMode=SessionMode. Necessary)]
02 manifeste interface IOrderManager
03
04
05 void CloseOrder();
06
You need to embellish the operation as the system that closes the present session.
Which code segment in the event you insert at line 04?
A. [OperationContract(IsInitiating=false)]
B. [OperationContract(IsTerminating=true)]
C. [OperationContract]
[OperationBehavior(ReleaseInstanceMode=
ReleaseInstanceMode.AfterCall)]
D. [OperationContract(IsTerminating=false)]
[OperationBehavior(ReleaseInstanceMode=
ReleaseInstanceMode.AfterCall)]
Reply: B
22. You build a Windows Communication Foundation service through the use of Microsoft . Net Framework 3.5.
You write the next code portion. (Line quantities are bundled for reference only.)
01 <ServiceContract(SessionMode:=SessionMode.Required)> _
02 Public Interface IOrderManager
03
04 Sub CloseOrder()
05 Stop Interface
You will want to embellish the operation because the process that closes the present session.
Which code portion in the event you insert at line 03?
A. <OperationContract(IsInitiating:=False)> _
B. <OperationContract(IsTerminating:=True)> _
Do. <OperationContract()> _
<OperationBehavior( _
ReleaseInstanceMode:=ReleaseInstanceMode.AfterCall)> _
D. <OperationContract(IsTerminating:=False)> _
<OperationBehavior( _
ReleaseInstanceMode:=ReleaseInstanceMode.AfterCall)> _
Response: B
23. You might be making a Windows Communication Basis service by making use of Microsoft . Web Framework 3.five.
The company consists of the following code phase.
[ServiceContract]
manifeste interface IMyService
[OperationContract(IsOneWay=true,
ProtectionLevel=ProtectionLevel.None)]
[TransactionFlow(TransactionFlowOption.Allowed)]
void DoSomething();
You would like to ensure that the DoSomething operation can take part in transactions.
Which code portion in case you use to interchange the present operation agreement?
A. [OperationContract(ProtectionLevel=ProtectionLevel.None)]
[TransactionFlow(TransactionFlowOption. Allowed)]
void DoSomething();
B. [OperationContract(ProtectionLevel=
ProtectionLevel.EncryptAndSign)]
[TransactionFlow(TransactionFlowOption.NotAllowed)]
void DoSomething();
Do. [OperationContract(IsOneWay=true,
ProtectionLevel=ProtectionLevel.EncryptAndSign)]
[TransactionFlow(TransactionFlowOption. Authorized)]
void DoSomething();
D. [OperationContract(IsOneWay=true,
ProtectionLevel=ProtectionLevel.Indication)]
[TransactionFlow(TransactionFlowOption. Mandatory)]
void DoSomething();
Response: A
24. You might be making a Windows Communication Foundation services by using Microsoft . Internet Framework three.5.
The services includes the subsequent code portion.
<ServiceContract()> _
Manifeste Interface IMyService
<OperationContract(IsOneWay:=True, _
ProtectionLevel:=ProtectionLevel.None)> _
<TransactionFlow(TransactionFlowOption.Allowed)> _
Sub DoSomething()
Finish Interface
You require to ensure that the DoSomething operation can take part in transactions.
Which code phase in case you use to replace the prevailing operation agreement?
A. <OperationContract( _
ProtectionLevel:=ProtectionLevel.None)> _
<TransactionFlow(TransactionFlowOption.Allowed)> _
Sub DoSomething()
B. <OperationContract( _
ProtectionLevel:=ProtectionLevel.EncryptAndSign)> _
<TransactionFlow(TransactionFlowOption.NotAllowed)> _
Sub DoSomething()
Do. <OperationContract(IsOneWay:=True, _
ProtectionLevel:=ProtectionLevel.EncryptAndSign)> _
<TransactionFlow(TransactionFlowOption.Allowed)> _
Sub DoSomething()
D. <OperationContract(IsOneWay:=True, _
ProtectionLevel:=ProtectionLevel.Sign)> _
<TransactionFlow(TransactionFlowOption.Mandatory)> _
Sub DoSomething()
Answer: A
twenty five. You could be creating a Windows Communication Basis company by making use of Microsoft . Net Framework three.5.
You absolutely need to make sure that knowledge sent within a SOAP header is from the following XML format.
<Data>
<string>String 1</string>
<string>String 2</string>
<string>String 3</string>
</Data>
Which code portion should you use?
A. [MessageContract]
public course MyMessage
[MessageHeader]
public string[] Data;
B. [MessageContract]
public class MyMessage
[MessageHeaderArray]
public string[] Data;
Do. [MessageContract]
manifeste class MyMessage
[MessageProperty]
public string[] Data;
D. [MessageContract]
manifeste class MyMessage
[MessageBodyMember (Order=0)]
public string[] Data;
Solution: A

0 respons:

Post a Comment