what is service contract,operation contract?

Answers were Sorted based on User's Feedback



what is service contract,operation contract?..

Answer / nithya_raghu

Service Contract --- Specifies the description of methods
which our service will provide to consuming application.
For WCF to identify contracts for the service,We need to
use a interface/class with [ServiceContract] attribute.
In WCF we can do interface/Class level programming.

Operation Contract --- We need to expose some methods to
consuming application to use our services.Those methods
will have [OperationContract] attribute. Making them public
will not make them accessible from outside.
So OperationContract Specifies the methods can be
accessible from outside.

Is This Answer Correct ?    14 Yes 6 No

what is service contract,operation contract?..

Answer / senthil

This attribute is used to define the method inside
Interface.

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

What is the Global ASA(X) File?

2 Answers  


what are the advantage in asp.net and what are the question ask for interview in vb.net and asp.net

0 Answers   TCS,


how to handle sql exceptions?

4 Answers   Marlabs, TCS,


In asp.net 3.5 we can go one page to onther page without using statemanagment concept?

1 Answers   ANR, Google, TCS,


How to check the end of the record in Datareader?

2 Answers   Cognizant,






Explain autherization levels in .net ?

2 Answers  


Does asp.net still recognize the global.asa file?

0 Answers  


How can we create a website?

0 Answers  


Differentiate between client-side and server-side validations in web pages.

0 Answers  


Define repository pattern in asp.net mvc? : asp.net mvc

0 Answers  


When Garbage Collector runs in an Application? 1)Application is running form more than 30 min. 2)On every 1/4th milisecond 3) Randomly 4) Application is running on low of memory

2 Answers   PCS,


What is Stateless ASP or ASP.Net?

2 Answers   Accenture,


Categories