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

Where can I get information on cookies in asp.net?

0 Answers  


what is the difference b/w Asp.net server controls and html server controls in .net?

2 Answers   iGate, Profiniti Systems,


What is a session in programming?

0 Answers  


Is string a value type or a reference type?

13 Answers  


Hi, I Dont know about Application and Session State management. Can anyone explain me with simple example?

1 Answers  






What is _dopostback in asp net?

0 Answers  


can we store textbox and com components in viewstate?

4 Answers   Microsoft,


What are the disadvantages of asp.net?

0 Answers  


What is an application domain?

2 Answers   Microsoft,


What are two ways that you can set the minimum and maximum values for a rangevalidator? When would you use each technique?

1 Answers  


What is a global postback url?

0 Answers  


Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

3 Answers   Siebel Systems,


Categories