what is service contract,operation contract?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain security types in asp.net?

629


How does exception management works in ASP.NET?

697


Which protocol is used to call web service?

646


Where you store Connection string in "Web.Config" file in ASP.NET?

655


Types of instancing properties and explain each. Tell the difference between multiuse,singleuse and globalmultiuse and which is default ?

2371






Where are session variables stored?

605


What is the difference between the asp and asp.net?

584


Why viewstate is used in asp.net?

621


What is the question mark in a url?

596


Is it possible to change the index of primary key on table?

493


What is localhost in asp.net?

650


what are the events raised in asp.net page life cycle?in which stage view state can be loaded?

651


What is the default Orientation property in a Menu control?

618


How do we ensure view state has not tampered?

698


What is a proxy in web service?

658