ITCertMaster. Safe, simple and fast. 100% Pass guarantee! IT Certification Guaranteed, The Easy Way!

Similar documents
70-503CSHARP. MS.NET Framework 3.5, Windows Communication Foundation Application Developer Exam.

CertifyMe. CertifyMe

Question: 3 You are creating a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. You write the following code segment.

WCF-Service-Endpoint. WCF Endpoint Components

Getting Started with WCF

EXAM TS:Windows Communication Found Dev w/ms.net Frmwk 4 (C# and VB) Buy Full Product.

MOC 6461A C#: Visual Studio 2008: Windows Communication Foundation

Windows Communication Foundation Using C#

Communication Foundation

CSharp. Microsoft. UPG-Transition MCPD.NET Frmwrk 3.5 Web Dev to 4 Web Dev

WCF: Best Practices and Pitfalls Discovered. Brian Camping, Avanade 29 May 2009

describe the functions of Windows Communication Foundation describe the features of the Windows Workflow Foundation solution

The SOAP Story. Martin Parry Developer & Platform Group Microsoft Ltd

TIBCO EMS Transport Channel for WCF User s Guide. Software Release 1.0 May 2008

Services and Windows Communication Foundation - WCF

WCF Services in Nutshell

Transport (http) Encoding (XML) Standard Structure (SOAP) Description (WSDL) Discovery (UDDI - platform independent XML)

Developing Windows Communication Foundation Solutions with Microsoft Visual Studio 2010

Windows Communication Foundation

Windows Communication Foundation Using C#

Windows Communication Foundation. Mike Taulty, Mike Ormond Developer & Platform Group Microsoft Ltd

Microsoft Exam Questions & Answers

Generation of a simple web-application in the Microsoft Visual Studio 2008 with the use of Silverlight Viewer for Reporting Services 2008

WCF Essentials. What Is WCF? CHAPTER 1

Hands-On Lab. Worker Role Communication. Lab version: Last updated: 11/16/2010. Page 1

Advance Dotnet ( 2 Month )

An Integrated Development Environment to Establish Web Services in Grid Computing Using.NET Framework 4.5 and Visual Basic 2012

Refcard #111 Getting Started with Windows Communication Foundation 4.0

Create your first RESTful service with WCF 3.5

Weather forecast ( part 1 )

Hands-On Lab. Part 1: Introduction to the AppFabric Service Bus. Lab version: Last updated: 11/16/2010. Page 1

BEAAquaLogic. Service Bus. JPD Transport User Guide

Windows Communication Foundation (WCF) Visual Studio 2008

WCF Guidance for Mobile Developers

Mono Infocard project::

Developing Windows Communication Foundation Solutions with Microsoft Visual Studio 2010

Web Services DELMIA Apriso 2017 Implementation Guide

Birds of the Same Feather BizTalk and WCF K.Meena. Director SymIndia Training & Consultancy Pvt Ltd Session Code:

Practice 2. SOAP & REST

Cracking the Foundation: Attacking WCF Web Services

Azure Logic Apps Connector for JMS

Enabling Embedded Systems to access Internet Resources

Advanced Programming Using Visual Basic 2008

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1

WCF - WAS HOSTING. Click Start Menu Control Panel Programs and Features, and click "Turn Windows Components On or Off" in the left pane.

Web Services in Cincom VisualWorks. WHITE PAPER Cincom In-depth Analysis and Review

Exam Questions 1Z0-895

DEVELOPING WEB AZURE AND WEB SERVICES MICROSOFT WINDOWS AZURE

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days

COP 4814 Florida International University Kip Irvine. Inside WCF. Updated: 11/21/2013

Configuration Service 5.5 Technical Guide

1) ItemsSource: it point to collection which has all the objects that will be shown in the list

SUN. Java Platform Enterprise Edition 6 Web Services Developer Certified Professional

Microsoft TS Windows Communication Foundation Development with Microsoft.NET Framework 4

CHAPTER 1: INTRODUCING C# 3

Oracle EXAM - 1Z Java EE 6 Enterprise JavaBeans Developer Certified Expert Exam. Buy Full Product.

.NET-6Weeks Project Based Training

--Microsoft-- --Windows Phone--

Pro WCF 4. Practical Microsoft SOA Implementation SECOND EDITION. Apress* Nishith Pathak

Mobile Computing. Logic and data sharing. REST style for web services. Operation verbs. RESTful Services

3 Hosting and Configuration

EXAM Web Development Fundamentals. Buy Full Product.

ITCertMaster. Safe, simple and fast. 100% Pass guarantee! IT Certification Guaranteed, The Easy Way!

70-487: Developing Windows Azure and Web Services

Introduction to Programming Microsoft.NET Framework Applications with Microsoft Visual Studio 2005 (C#)

IBM C IBM WebSphere App Server Dev Tools V8.5, with Liberty.

C exam. IBM C IBM WebSphere Application Server Developer Tools V8.5 with Liberty Profile. Version: 1.

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

COURSE 20487B: DEVELOPING WINDOWS AZURE AND WEB SERVICES

OpenLM SOAP API implementation spec

FIU Digital Commons. Florida International University. Gowthami Thota Florida International University,

Web Services Development for IBM WebSphere Application Server V7.0

BEAAquaLogic. Service Bus. Interoperability With EJB Transport

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#)

DOT NET Syllabus (6 Months)

Developing Windows Azure and Web Services

We recommend you review this before taking an ActiveVOS course or before you use ActiveVOS Designer.

edocs Home > BEA AquaLogic Service Bus 3.0 Documentation > Accessing ALDSP Data Services Through ALSB

Advanced WCF 4.0 .NET. Web Services. Contents for.net Professionals. Learn new and stay updated. Design Patterns, OOPS Principles, WCF, WPF, MVC &LINQ

[MS20487]: Developing Windows Azure and Web Services

Sentinet for BizTalk Server VERSION 2.2

Microsoft Exam MB2-701 Extending Microsoft Dynamics CRM 2013 Version: 6.1 [ Total Questions: 90 ]

Introduction to Microsoft.NET Framework Programming using VS 2005 (C#)

Sentinet for BizTalk Server SENTINET

A pragmatic approach to creating services using Windows Communication Foundation

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010

Service oriented Middleware (SOM)

itexamdump 최고이자최신인 IT 인증시험덤프 일년무료업데이트서비스제공

Microsoft Architecting Microsoft Azure Solutions.

Programming in C# for Experienced Programmers

DE Introduction to Web Development with Microsoft Visual Studio 2010

RESTful API Design APIs your consumers will love

Oracle Service Bus. Interoperability with EJB Transport 10g Release 3 (10.3) October 2008

WS-* Standards. Szolgáltatásorientált rendszerintegráció Service-Oriented System Integration. Dr. Balázs Simon BME, IIT

ITCertMaster. Safe, simple and fast. 100% Pass guarantee! IT Certification Guaranteed, The Easy Way!

DocGeneration Software Development Kit (SDK)

Mastering VB.NET using Visual Studio 2010 Course Length: 5 days Price: $2,500

Hands-On Lab. Part 2: Introduction to the AppFabric Service Bus. Lab version: Last updated: 12/15/2010. Page 1

ISA 767, Secure Electronic Commerce Xinwen Zhang, George Mason University

Oracle Service Bus. 10g Release 3 (10.3) October 2008

Transcription:

ITCertMaster Safe, simple and fast. 100% Pass guarantee! http://www.itcertmaster.com IT Certification Guaranteed, The Easy Way!

Exam : 70-503-Csharp Title : TS: MS.NET Frmwrk 3.5, Wndws Commun Fndtion App Dev Vendors : Microsoft Version : DEMO

NO.1 You are creating a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. You write the following code segment. namespace MyServices [ServiceContract()] interface IManageOrders... The service metadata must be exposed at the relative address named meta. You need to add an endpoint element to the app.config file of the service host. Which code fragment should you add? A. <endpoint address="meta" binding="wshttpbinding" contract="imanageorders" /> B. <endpoint address="meta" binding="wshttpbinding" contract="myservices.imetadataexchange" /> C. <endpoint address="meta" binding="mexhttpbinding" contract="imetadataexchange" /> D. <endpoint address="meta" binding="mexhttpbinding" contract="myservices.imanageorders" /> Answer: C NO.2 You are creating a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. The service will expose a method named DoProcess to the client applications. You write the following code segment. (Line numbers are included for reference only.) 01 [ServiceContract] 02 public interface IMyService 03 04 05 You need to ensure that the client applications are not required to obtain results from the DoProcess method. Which code segment should you insert at line 04?

A. [OperationContract(IsOneWay=true)] bool DoProcess(); B. [OperationContract(IsOneWay=true)] void DoProcess(); C. [OperationContract(AsyncPattern=false)] bool DoProcess(); D. [OperationContract(AsyncPattern=false)] void DoProcess(); Answer: B NO.3 You are creating a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. You create the following service contract. (Line numbers are included for reference only.) 01 [ServiceContract] 02 public interface IMyService 03 04 05 06 List<string> GetData(int index); 07 You need to ensure that the GetData operation can be accessed by using the URI in the following manner: ` GetData/1 for the index value 1 ` GetData/2 for the index value 2 `. `. ` GetData/n for the index value n Which code segment should you insert at line 05? A. [WebGet(UriTemplate="GetData/index",?BodyStyle=WebMessageBodyStyle.Bare)] B. [WebGet(UriTemplate="GetData index=index",?bodystyle=webmessagebodystyle.bare)] C. [WebGet(UriTemplate="GetData/[index]",?BodyStyle=WebMessageBodyStyle.Bare)] D. [WebGet[UriTemplate="GetData index=index",?bodystyle=webmessagebodystyle.bare]]

Answer: A NO.4 You create a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. The service contains the following code segment. [DataContract] public class Person [DataContract] public class Customer : Person You need to create a service contract that meets the following requirements: ` The service contract must have an operation contract named GetPerson that returns an object of type Person. ` The GetPerson operation must be able to return an object of type Customer. Which code segment should you use? A. [ServiceContract] [ServiceKnownType("GetPerson")] public interface IMyService Person GetPerson(); B. [ServiceContract] public interface IMyService [ServiceKnownType("Customer")] Person GetPerson(); C. [ServiceContract] [ServiceKnownType(typeof(Customer))] public interface IMyService

Person GetPerson(); D. [ServiceContract] [ServiceKnownType("GetPerson",typeof(Customer))] public interface IMyService Person GetPerson(); Answer: C NO.5 You create a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. You create the following service contract. [ServiceContract] public interface IMath int Add(int num1, int num2); You need to add an operation contract to perform the Add operation asynchronously. Which operation contract should you use? A. [OperationContract(AsyncPattern=true)] IAsyncResult BeginAdd(int num1, int num2); int EndAdd(IAsyncResult res); B. int BeginAdd(int num1, int num2, AsyncCallback cb, object state); IAsyncResult EndAdd(); C. IAsyncResult BeginAdd(int num1, int num2); int EndAdd(IAsyncResult res); D. [OperationContract(AsyncPattern=true)] IAsyncResult BeginAdd(int num1, int num2, AsyncCallback cb, object state); int EndAdd(IAsyncResult res); Answer: D

NO.6 You are creating a Windows Communication Foundation service by using Microsoft.NET Framework NO.7 You create a Windows Communication Foundation (WCF) service by using Microsoft.NET Framework 3.5. The WCF service contains two operations named ProcessSimpleOrder and ProcessComplexOrder. You need to expose the ProcessSimpleOrder operation to all the client applications. You also need to expose the ProcessComplexOrder operation only to specific client applications. Which code segment should you use? A. [ServiceContract] public interface IOrderManager [OperationContract(Action="*")] void ProcessSimpleOrder(); void ProcessComplexOrder(); B. [ServiceContract] public interface IOrderManager [OperationContract(Name="http: //contoso.com/simple")] void ProcessSimpleOrder(); [OperationContract(Name="http: //contoso.com/complex")] void ProcessComplexOrder(); C. [ServiceContract] public interface ISimpleOrderManager void ProcessSimpleOrder(); [ServiceContract] public interface IComplexOrderManager: ISimpleOrderManager

void ProcessComplexOrder(); D. [ServiceContract] public interface ISimpleOrderManager [OperationContract(Name="http: //contoso.com/simple")] void ProcessSimpleOrder(); public interface IComplexOrderManager: ISimpleOrderManager [OperationContract(Name="http: //contoso.com/complex")] void ProcessComplexOrder(); Answer: C NO.8 smb.httpgeturl=mexaddress; NO.9 You are creating a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. You need to programmatically add the following endpoint definition to the service. http://localhost:8000/examservice/service Which code segment should you use? A. String baseaddress="http: //localhost:8000/examservice"; BasicHttpBinding binding1=new BasicHttpBinding(); using(servicehost host=new ServiceHost(typeof(ExamService))) host.addserviceendpoint(typeof(iexam),binding1,baseaddress); B. String baseaddress="http: //localhost:8000/examservice/service"; BasicHttpBinding binding1=new BasicHttpBinding(); using(servicehost host=new ServiceHost(typeof(ExamService))) host.addserviceendpoint(typeof(iexam),binding1,baseaddress); C. String baseaddress="http: //localhost:8000/examservice"; WsHttpBinding binding1=new WsHttpBinding(); using(servicehost host=new ServiceHost(typeof(ExamService)))

host.addserviceendpoint(typeof(iexam),binding1,baseaddress); D. String baseaddress="net.tcp: //localhost:8000/examservice/service"; NetTcpBinding binding1=new NetTcpBinding(); using(servicehost host=new ServiceHost(typeof(ExamService))) host.addserviceendpoint(typeof(iexam),binding1,baseaddress); Answer: B NO.10 You are creating a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. You need to ensure that the service can send data in the following format to the client applications. <Account Id=""> <Name> </Name> <Balance Currency=""> </Balance> </Account> Which code segment should you use? A. [Serializable] public class Account [XmlAttribute] public string Id; [XmlElement] public string Name; [XmlAttribute] public string Currency; [XmlElement] public double Balance; B. [DataContract] public class Account [DataMember(Order=0)] public string Id;

[DataMember(Order=1)] public string Name; [DataMember(Order=0)] public double Balance; [DataMember(Order=1)] public string Currency; C. [Serializable] public class Account [XmlAttribute] public string Id; public string Name; [XmlElement("Balance")] public BalanceVal Balance; [Serializable] public class BalanceVal [XmlText] public double Amount; [XmlAttribute] public string Currency; D. [DataContract] public class Account [DataMember(Order=0)] public string Id; [DataMember(Order=1)] public string Name; [DataMember(Name="Balance", Order=2)] public BalanceVal Balance; [DataContract] public struct BalanceVal [DataMember(Order=0)]

public double Balance; [DataMember(Order=1)] public string Currency; Answer: C NO.11 You are creating a Windows Communication Foundation (WCF) service by using Microsoft.NET Framework 3.5. You configure a binding to enable streaming. You need to ensure that the client application is able to stream large XML files to the WCF service. Which operation contract should you create? A. void UploadFile(Stream xmldata); B. void UploadFile(XmlWriter xmldata); C. void UploadFile(StreamWriter xmldata); D. void UploadFile(byte[] xmldata); Answer: A NO.12 When you browse to the base address of the service, you receive the following message: "Metadata publishing for this service is currently disabled." You debug the code and discover that the ServiceMetadataBehavior behavior was previously nonexistent. You need to enable metadata publishing. What should you do? A. Delete lines 15 and 16. B. Modify the code segment at line 03 in the following manner. Uri mexaddress=new Uri("/service"); C. Insert the following code segment at line 11. smb.httpgetenabled=true; D. Insert the following code segment at line 19. smb.httpgetenabled=true; Answer: D

17. You are creating an endpoint for a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. You create the endpoint by using a custom binding. You write the following code segment. BasicHttpBinding binding=new BasicHttpBinding(); binding.security.message.clientcredentialtype=?basichttpmessagecredentialtype.certificate; binding.security.mode=basichttpsecuritymode.message; CustomBinding cb=new CustomBinding(binding); BindingElementCollection bec=cb.createbindingelements(); You need to prevent the custom binding from making a persistent connection to the service endpoint. Which code segment should you use? A. cb.sendtimeout=timespan.zero; B. binding.receivetimeout=timespan.zero; C. foreach (BindingElement bindingelement in bec) HttpTransportBindingElement element= (HttpTransportBindingElement) bindingelement; element.keepaliveenabled=false; D. foreach (BindingElement be in bec) if (be is HttpTransportBindingElement) HttpTransportBindingElement httpelement= (HttpTransportBindingElement)be; httpelement.keepaliveenabled=false; Answer: D 18. You create a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. The service will receive notification messages from client applications by using a number of transports, including HTTP, TCP, MSMQ, and others. You need to ensure that all client applications can send notification messages to the service. Which service contract should you use? A. [ServiceContract]

public interface INotificationService [OperationContract(AsyncPattern=true)] void LogMessage(string message); B. [ServiceContract] public interface INotificationService [OperationContract(ReplyAction="none")] void LogMessage(string message); C. [ServiceContract] public interface INotificationService [OperationContract(IsOneWay=true)] void LogMessage(string message); D. [ServiceContract] public interface INotificationService [OperationContract(IsTerminating=true)] void LogMessage(string message); Answer: C 19. You are creating a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. The service will be hosted in a Console application. You need to configure the service by using a configuration file other than the default app.config file. Which code segment should you use? A. class MyServiceHost : ServiceHost public MyServiceHost(Type servicetype, params Uri[] baseaddresses) : base(servicetype, baseaddresses) protected override void InitializeRuntime() //Load configuration here

B. class MyServiceHost : ServiceHost public MyServiceHost(Type servicetype, params Uri[] baseaddresses) : base(servicetype, baseaddresses) protected override void ApplyConfiguration() //Load configuration here C. class MyServiceHost : ServiceHost public MyServiceHost(Type servicetype, params Uri[] baseaddresses) : base(servicetype, baseaddresses) protected new void InitializeDescription(Type servicetype, UriSchemeKeyedCollection baseaddresses) //Load configuration here. D. class MyServiceHost : ServiceHost public MyServiceHost(Type servicetype, params Uri[] baseaddresses) : base(servicetype, baseaddresses) protected new void AddBaseAddress(Uri baseaddress) //Load configuration here. Answer: B NO.13 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 servicehost= new ServiceHost(typeof(MortgageService), new Uri[] ); servicehost.addserviceendpoint(typeof(imortgageservice), new BasicHttpBinding(), baseaddress); servicehost.open(); D. [ServiceContract(Namespace="http: //localhost:8888/mortgageservice")] public interface IMortgageService public class MortgageService : IMortgageService ServiceHost servicehost= new ServiceHost(typeof(MortgageService), new Uri[] ); servicehost.addserviceendpoint(typeof(imortgageservice), new BasicHttpBinding(), "");

servicehost.open(); Answer: A NO.14 You are creating a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. You need to ensure that data sent in a SOAP header is in the following XML format. <Data> <string>string 1</string> <string>string 2</string> <string>string 3</string> </Data> Which code segment should you use? A. [MessageContract] public class MyMessage [MessageHeader] public string[] Data; B. [MessageContract] public class MyMessage [MessageHeaderArray] public string[] Data; C. [MessageContract] public class MyMessage [MessageProperty] public string[] Data; D. [MessageContract] public class MyMessage [MessageBodyMember (Order=0)] public string[] Data; Answer: A

NO.15 You are creating a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. You write the following code segment. (Line numbers are included for reference only.) 01 Uri baseaddress= 02 new Uri ( http://localhost:8000/examservice ); 03 Uri mexaddress=new Uri(""); 04 ServiceHost servicehost=new ServiceHost(typeof( 05?ExamService), baseaddress); 06 ServiceMetadataBehavior smb= 07 servicehost.description.behaviors. 08 Find<ServiceMetadataBehavior>(); 09 if (smb!= null) 10 11 12 13 else 14 15 smb=new ServiceMetadataBehavior(); 16 servicehost.description.behaviors.add(smb); NO.16 You create a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. You write the following code segment. [ServiceContract] public interface IMathService int AddNumbers(int a, int b); double AddNumbers(double a, double b); You have not deployed the IMathService service. You need to expose the AddNumbers (double a, double b) operation to the IMathService service contract. Which code segment should you use? A. int AddNumbers(int a, int b);

double AddNumbers(double a, double b); B. [OperationContract(Name="AddInt")] int AddNumbers(int a, int b); [OperationContract(Name="AddDouble")] double AddNumbers(double a, double b); C. [OperationContract(Action="IMathService/AddInt")] int AddNumbers(int a, int b); [OperationContract(Action="IMathService/AddDouble")] double AddNumbers(double a, double b); D. [OperationContract(Action="AddInt/*")] int AddNumbers(int a, int b); [OperationContract(Action="AddDouble/*")] double AddNumbers(double a, double b); Answer: B NO.17 You create a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. You write the following code segment. (Line numbers are included for reference only.) 01 [ServiceContract(SessionMode=SessionMode.Required)] 02 public interface IOrderManager 03 04 05 void CloseOrder(); 06 You need to decorate the operation as the method that closes the current session. Which code segment should you insert at line 04? A. [OperationContract(IsInitiating=false)] B. [OperationContract(IsTerminating=true)] C. [OperationBehavior(ReleaseInstanceMode= ReleaseInstanceMode.AfterCall)] D. [OperationContract(IsTerminating=false)] [OperationBehavior(ReleaseInstanceMode= ReleaseInstanceMode.AfterCall)] Answer: B NO.18 5. You have successfully created two interfaces: IMyService and IMyServiceClient.

You need to ensure that the service is able to call methods from the client application by using the IMyServiceClient interface. Which code segment should you use? A. [ServiceContract(CallbackContract=typeof(IMyServiceClient))] public interface IMyService... public interface IMyServiceClient... B. [ServiceContract(CallbackContract=typeof(IMyService))] public interface IMyService... public interface IMyServiceClient... C. [ServiceContract(SessionMode=SessionMode.Allowed)] [ServiceKnownType(typeof(IMyServiceClient))] public interface IMyService : IMyServiceClient... public interface IMyServiceClient... D. [ServiceContract] [ServiceKnownType(typeof(IMyServiceClient))] public interface IMyService...

[ServiceContract] public interface IMyServiceClient : ICommunicationObject... Answer: A 3. You have created a Windows Communication Foundation service by using Microsoft.NET Framework 3.5. The existing service interface is named IMyService, and contains the following code segment. [ServiceContract(Name="SvcOrder", Namespace="http://contoso.com/services")] public interface IMyService void DoSomething(); You create a new service named IMyServiceV1 that contains an operation named DoSomethingElse. You need to ensure that existing client applications are still able to access the IMyService.DoSomething method without modifying client code. Which code segment should you use? A. [ServiceContract(Namespace="http:?//contoso.com/services/V1")] public interface IMyServiceV1 : IMyService void DoSomethingElse(); B. [ServiceContract(Name="SvcOrder")] public interface IMyServiceV1 : IMyService void DoSomethingElse(); C. [ServiceContract(Name="SvcOrderV1", Namespace="http: //contoso.com/services")] public interface IMyServiceV1 : IMyService

void DoSomethingElse(); D. [ServiceContract(Name="SvcOrder", Namespace="http: //contoso.com/services")] public interface IMyServiceV1 : IMyService void DoSomethingElse(); Answer: D NO.19 You create a Windows Communication Foundation (WCF) service by using Microsoft.NET Framework 3.5. You write the following code segment. (Line numbers are included for reference only.) 01 public interface IMyService 02 03 04 string ProcessString(string name); 05 You create a host for the WCF service. You also create a service endpoint at http://localhost:8080/service. You add an instance of the HttpTransferEndPointBehavior class to the host. You need to ensure that the ProcessString method can be invoked from a Web browser by using the URL http://localhost:8080/service/process name=value Which code segment should you insert at line 03? A. [OperationContract(Name="process", Action="Get")] B. [OperationContract(Name="process", Action="Post")] C. [WebGet(UriTemplate = "process name=name")] D. [WebInvoke(UriTemplate = "process name=name")] Answer: C NO.20