Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
Exam
: Microsoft 70-503(CSharp)
Title
: TS: MS.NET Frmwrk 3.5,
Wndws Commun Fndtion
App Dev
Version : Demo
Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
1. You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
The service uses the net.tcp transport. You need to ensure that when the server starts, the service starts
and continues to run. What should you do?
A. Host the service in a Windows service.
B. Host the service in a Windows Presentation Foundation application.
C. Host the service under IIS 7.0 by using IIS 6.0 compatibility mode.
D. Host the service under IIS 7.0 by using Windows Activation Services.
Answer: A
2. You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
The service will be hosted in a managed Console application. You want to add endpoints to the service.
You need to ensure that all endpoints use the same base address. Which code fragment should you use?
A. [ServiceContract]public interface IMortgageService {}public class MortgageService : IMortgageService
{}Uri baseAddress=new Uri("http:
//localhost:8888/MortgageService");ServiceHost serviceHost= new
ServiceHost(typeof(MortgageService),
new
Uri[]
{baseAddress });serviceHost.AddServiceEndpoint(typeof(IMortgageService),
new BasicHttpBinding(),
"");serviceHost.Open();
B. [ServiceContract]public interface IMortgageService {}public class MortgageService : IMortgageService
{}Uri baseAddress=new Uri("http:
//localhost:8888/MortgageService");ServiceHost serviceHost= new
ServiceHost(typeof(MortgageService),
new
Uri[]
{});serviceHost.AddServiceEndpoint(typeof(IMortgageService),
new
BasicHttpBinding(),
baseAddress);serviceHost.Open();
C. [ServiceContract]public interface IMortgageService {}public class MortgageService : IMortgageService
{}string
baseAddress="http:
//localhost:8888/MortgageService";ServiceHost
servic