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 are the advantage in asp.net and what are the question ask for interview in vb.net and asp.net

0 Answers   TCS,


Which authentication uses a combination of windows and iis authentication?

0 Answers  


I have one application, one user purchase some products in my application? and another person came he is also purchase some products?how can we identify which user purchase which items? my answer is by using session id? but i dont know how? can u give me programming for that?

1 Answers  


hi i am varinder. i am very eager to learn ASP.net in C#. i am beginer to it. i have refer some books but i found it tuff to understand. their language is tuff. So please tell me the best site or best book to learn ASP.net in C#. i will be very thankful. Varinder

1 Answers  


What is the difference between localization and globalization?

0 Answers  






What are the types of authentications in ASP.NET?

2 Answers   Accenture, BirlaSoft,


How can you handle errors in Web API?

0 Answers  


When during the page processing cycle is ViewState available?

1 Answers  


How do you register the .Net Component or Assembly?

2 Answers   Accenture,


Which is faster viewbag or viewdata?

0 Answers  


How response object is related to asp's response object?

0 Answers  


What a diffgram is, and a good use for one?

0 Answers  


Categories