Microsoft
70-513 · Question #158
70-513 Question #158: Real Exam Question with Answer & Explanation
Sign in or unlock 70-513 to reveal the answer and full explanation for question #158. The question stem and answer options stay visible for context.
Question
A Windows Communication Foundation (WCF) service implements the following cortract. <ServiceContract0>? Public Interface lHeloServic e <operationContractQ> <WebGet(UriTempbte: ="helloname={name}")s Function SayHello(Byval name As String) As nng End Interface The implementation is as follows Public Class HelloService Implements IHelloService Public Function SayHello(ByVal name As String) As String - Implements lHelloServiceSayHello Retumn "Hello "& name End Function End Cesst The service is self-hosted, and the hosting code is as follows. Dim stHost As WebServiceHo = CreateHost() svcHo Open() Consde ReadLine() svcHoaClose() You need to implement CreateHost so that the service has a single endpoint hosted Which code segment should you use?
Options
- ADim svc Host As WebSennceHost = New WebServiceHost(GetType(HdloService))
- BDim baseAddress As Ur New Uri("http:/i1ocahost:8000r)
- CDim svc Host As WebServiceHost = New WebServiceHost(New HelloSennceO)
- DDim baseAddress As Ur = New Uri("http/I1ocahost 8OOOP
Unlock 70-513 to see the answer
You've previewed enough free 70-513 questions. Unlock 70-513 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.