nerdexam
Microsoft

70-513 · Question #196

You are consuming a Windows Communication Foundation (WCF) service. The service interface is defined as follows. <DataContract(Namespace:="")> Public Class Item End Class ServiceContract (Namespace…

The correct answer is C. Dim s As DataContractJsonSerlalizer =. See the full explanation below for the reasoning.

Question

You are consuming a Windows Communication Foundation (WCF) service. The service interface is defined as follows. <DataContract(Namespace:="")> Public Class Item End Class ServiceContract (Namespace: ="") > Public Interface ICatalog <OperationContract()> <WebInvoke(Method:="POST*', UriTemplate:="/Item") > Function Updateltem(ByVal item As Item) As Item End Interface The client application receives a WebResponse named response with the response from the service. You need to deserialize this response into a strongly typed object representing the return value of the method. Which code segment should you use?

Options

  • ADim r As XmlDictionaryReader =
  • BDim s As DataContractSerializer =
  • CDim s As DataContractJsonSerlalizer =
  • DDim f As BinaryFormatter = New BinaryFormatter() Dim item As Item =

How the community answered

(49 responses)
  • A
    14% (7)
  • B
    4% (2)
  • C
    73% (36)
  • D
    8% (4)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice