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

When Cookies are expired in ASP.NET?

579


What kind of data we can store in viewstate?

580


What is Web API?

647


What is http only cookie?

504


Explain ViewState?

582






What is autopostback in asp net?

592


Explain server control extensibility with reference to asp.net 2.0 ?

550


How do u optimize a query in asp.net?

573


What is the benefit of WebAPI over WCF?

573


Explain the features that make asp.net more used framework? : asp.net mvc

487


Can you nest updatepanel within each other?

554


What is the main difference between Asp.net and Vb.net?

570


Is asp.net mvc front end or backend? : Asp.Net MVC

494


How does the service stream content?

588


What is the difference between session and viewstate in asp.net?

610