Tag Archives: WCF

WCF Interview questions:- Binding used for WCF REST .

This is one of the asked WCF interview questions during the interview. So one proceed answer as the following: – For WCF REST we need to use WebHttpBinding. WebhttpBinding is enabled by as shown in the below code snippet. <endpointBehaviors> … Continue reading

Posted in .NET and C# interview questions and answers, .NET and C# training, .NET exception handing interview questions and answers, .Net Interview Questions, .NET interview questions and answers, Binding, Csharp interview questions, programming interview questions, WCF, WCF interview questions and answers, WCF REST | Tagged , , , , , , , , , | Leave a comment

WCF Interview Question – What are Service Contract,Operation Contract and Data Contract?

Answer:  Service Contract:-Service Contract is used to define the service name. Operation Contract:-Operation contract defines the methods in the services. Data Contract:-Data contract defines custom data types in the services. Please click here to see more WCF interview questions Regards, Visit … Continue reading

Posted in .NET and C# training, .Net Interview Questions, C# interview questions, Csharp interview questions, programming interview questions, WCF, WCF interview questions | Tagged , , , , , , | Leave a comment

WCF Interview Question – How to achieve Self-Hosting in WCF?

Answer:  The following steps are followed to do Self-hosting. Step1:    //Create a URI to serve as the base address // Address as well binding Uri httpUrl = new Uri(“http://localhost:8010/MyService/HelloWorld&#8221;); Step2: //Create ServiceHost ServiceHost host = new ServiceHost(typeof(ClassLibrary1.HelloWorldService),httpUrl); Step3: //Add a … Continue reading

Posted in .NET and C# training, .Net Interview Questions, C# interview questions, Csharp interview questions, How to achieve Self-Hosting in WCF, programming interview questions, WCF, WCF interview questions | Tagged , , , , , , , | Leave a comment