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

How many types of session state management options available in asp.net?

534


What are the types of session in asp.net?

525


What is a 1x1 pixel?

528


What is session object? Describe in detail.

560


Which object wraps the state or data of a user?

543






What is server infrastructure?

611


what are configuration files?

561


Which is faster union or union all?

570


code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications

1407


Can we store object in viewstate?

529


What is meant by server side scripting?

521


Why does my asp.net file have multiple tag with runat=server?

571


Why do we need url encoding?

518


What is mvc in asp.net tutorial? : Asp.Net MVC

541


What is sta?

556