You need to set up the URI that is mapped to the service

You develop a Windows Communication Foundation (WCF) service. You name the service
MovieService in the Movie namespace. The service is hosted in Microsoft Internet
Information Services (IIS). You copy the assembly containing the service to the bin folder in
the virtual directory path. You need to set up the URI that is mapped to the service. What
should you do?

You develop a Windows Communication Foundation (WCF) service. You name the service
MovieService in the Movie namespace. The service is hosted in Microsoft Internet
Information Services (IIS). You copy the assembly containing the service to the bin folder in
the virtual directory path. You need to set up the URI that is mapped to the service. What
should you do?

A.
Add a Movie.svc file in the root of the virtual path with the following line. <%8ServiceHost
language=”C#” Service=”MovieService.svc”%>

B.
Add the following code segment to the web.config file. <serviceHostingEnvironment>
<serviceActivations> odd relativeAddress=” . /Movie, svc” service=”Hovie.MovieService”/>
</serviceActivations> </serviceHostingEnvirorunent>

C.
Add the following code segment to the web.config file. <serviceHostingEnvironment>
<serviceActivations> odd relativeAddress=”./Movie” service=”Movie.MovieService”/>
</serviceAct ivations> </serviceHostingEnvironment>

D.
Add a Movie.svc file in the root of the virtual path with the following line. <%8ServiceHost
language=”C#” Service=”MovieService”*>



Leave a Reply 0

Your email address will not be published. Required fields are marked *