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

How can u debug your .net application?

0 Answers  


How to Page Execute in asp.net(inside browser)

1 Answers   Satyam, Wipro,


Why is it preferred to not use finalize for clean up?

0 Answers  


Why is xap important?

0 Answers  


Who will magage un-managed code?

7 Answers   HP,






Explain the difference between web user control and web custom control?

0 Answers  


What are triggers of an updatepanel?

0 Answers  


How do you turn off cookies for one page in your site?

2 Answers   IBS,


Explain about Application and Session Events ?

0 Answers  


If we remove web.config or machine.config from the application then, is this application will works?

0 Answers  


What are HTTP handlers in ASP.NET?

0 Answers   MindCracker,


What are the ways of preserving data on a Web Form in ASP.NET?

0 Answers  


Categories