HOTSPOT - You are creating a streamed Windows Communication Foundation (WCF) service. You implement the following service methods. For each of the following statements, select Yes if the statement is true. Otherwise, select No. Hot Area:
Suggested Answer:
To enable streaming, define the OperationContract appropriately and enable streaming at the transport level. To stream data, the OperationContract for the service must satisfy two requirements: ✑ The parameter that holds the data to be streamed must be the only parameter in the method. For example, if the input message is the one to be streamed, the operation must have exactly one input parameter. Similarly, if the output message is to be streamed, the operation must have either exactly one output parameter or a return value. ✑ At least one of the types of the parameter and return value must be either Stream, Message, or IXmlSerializable. References: https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-enable-streaming
Source: https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-enable-streaming
"To stream data, the OperationContract for the service must satisfy two requirements:
- The parameter that holds the data to be streamed must be the only parameter in the method.
- At least one of the types of the parameter and return value must be either Stream, Message, or IXmlSerializable.
"
This means that the corect answear is: NO(2 Input parameters), Yes(IXmlSerializable), No (2 input parameters), No(its a bool)
I don't think IXMLSeriazable is a stream type, EmployeeMethod3 has a parameter as stream class type "stream1", this is input for method. So I agree with: Yes NO NO NO
upvoted 2 times
...
This section is not available anymore. Please use the main Exam Page.70-487 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
piedro
Highly Voted 4 years, 5 months agoammariii
Most Recent 4 years, 5 months ago