PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

You are developing a client that sends several types of SOAP messages to a Windows
Communication Foundation (WCF) service method named PostData. PostData is currently

defined as follows. [OperationContract] void PostData(Order data); You need to modify
PostData so that it can receive any SOAP message. Which code segment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
[OperationContract(IsOneWay = true, Action = “*”, ReplyAction = “*”)] void
PostData(Order data);

B.
[OperationContract(IsOneWay = true, Action = “*”, ReplyAction = “*”)] void
PostData(BodyWriter data);

C.
[OperationContract] void PostData(BodyWriter data);

D.
[OperationContract] void PostData(Message data);


Leave a Reply