v Wcf
Ø Security in wcf
Ø Difference between datacontract and message contract
Ø Multiple endpoint in wcf
A) Configure the multiple end points here.
Explanation
1. There are two end points getting exposed.
2. Relative address is being used to expose the end points.
3. Two end points are having their respective names as firstBinding and secondBinding.
A) Configure the multiple end points here.
- Add as many end points as you want in service tag.
- Make sure none of the end points is having same address. Else you will get run time error.
- Advisable is to use relative address. So for that add base address using Host tag.
Explanation
1. There are two end points getting exposed.
2. Relative address is being used to expose the end points.
3. Two end points are having their respective names as firstBinding and secondBinding.
Ø Overloading in wcf
Ø In WCF, can data contract classes inherit from one another?
A) Yes, but you need to decorate the base class with the [KnownTypeAttribute] constructing it with the derived class's type. For instance:
[DataContract]
[KnownType(typeof(B))]
public class A
{
[DataMember]
public string Value { get; set; }
}
[DataContract]
public class B : A
{
[DataMember]
public string OtherValue { get; set; }
}
Ø Faultcontract use
Ø Interfaces in wcf
Ø How to create proxy how many files are created
A) When we create a proxy 2 files created
1) serviceproxy.cs
2) output.config
Generate Proxy by using SvcUtil.exe Tool
A) When we create a proxy 2 files created
1) serviceproxy.cs
2) output.config
Generate Proxy by using SvcUtil.exe Tool
Let’s generate proxy by using third option i.e. SvcUtil.exe Tool by following step by step approach.
- Add a Client Project to solution named as “ClientApp3″ that is basically a Console Application.
- Our WCF Service must be running, so let’s run our service.
- Open Visual Studio Command Prompt and generate proxy using svcutil.exe tool as follows:
svcutil http://localhost:4321/StudentService /out:StudentServiceProxy.cs
- Add newly created proxy class to our client application “ClientApp3″.
- Call WCF Service using proxy class as:
Hide Copy Code
class Program
{
static void Main(string[] args)
{
StudentServiceClient myclient;
myclient = new StudentServiceClient();
int studentId = 1;
Console.WriteLine(“Calling StudentService with StudentId = 1…..”);
Console.WriteLine(“Student Name = {0}”, myclient.GetStudentInfo(studentId));
Console.ReadLine();
}
}
When we run the application, it will call
StudentService
method getStudentInfo
and generate the same output as we received in other options.
Ø Use of message contract
Ø Bindings in wcf
Ø How to provide security in wcf service
Ø Difference between wcf and webservice
Ø Exception handling in wcf
Ø How to host wcf service
Ø What is msmq
v Sql
Ø Getting top records without using top keyword
Ø Cross join
Ø Inner join
Ø Left outer join
Ø Cursor
Ø View
Ø Index
Ø Indexes having drawback for this what is the alternative way to get the records
Ø I have 1000 lines in sp how to optimize performance
Ø Get the data from two tables
Ø I have 10 records in table, 5 records in other table if use select statement what is the result
Ø Delete Duplicate records in sql
v C#
Ø Sealed
Ø Interface
Ø Oops
Ø Constructor purpose brief discussion
Ø Exception handling
Ø Polymorphism and overloading and overriding
Ø Databoung controls
Ø I have 5 methods in base class, how will I access only 4methds in derived class
v Asp.net
Ø Pagelife cycle
Ø When you enter url in browser what action to be done
Ø Masterpage,user control which one to be load first
Ø Ajax controls, validations
Ø Webmethods in Jquery
Ø Validations in Jquery
Ø State management technics used
Ø If disabled in cookies what happen?
Ø Session in asp.net
No comments:
Post a Comment