.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> WCF >> Post New Question Subscribe to Interview Questions

Advantage of using a Remote WebService ?

Posted By :Srikanth     Posted Date :April 22, 2011    Points :40   Category :WCF 
When there is a need of using a webservice and only when the same set of data needs to be accessed by multiple people, or when a user needs to be able to access the same set of data from multiple computers. This Remote Web Service is very much useful.

You can also find related Interview Question to Advantage of using a Remote WebService ?  below: 

Different Types of Remote Objects?

The remoting infrastructure allows you to create two distinct types of remote objects.

1.Client-activated objects - A client-activated object is a server-side object whose creation and destruction is controlled by the client application. An instance of the remote object is created when the client calls the new operator on the server object. This instance lives as long as the client needs it, and lives across one to many method calls. The object will be subject to garbage collection once it''s determined that no other clients need it.

2.Server-activated objects - A server-activated object''s lifetime is managed by the remote server, not the client that instantiates the object. This differs from the client-activated object, where the client governs when the object will be marked for finalization. It is important to understand that the server-activated objects are not created when a client calls New or Activator.GetObject. They are rather created when the client actually invokes a method on the proxy. There are two types of server activated objects. They are:

I. Single call . Single-call objects handle one, and only one, request coming from a client. When the client calls a method on a single call object, the object constructs itself, performs whatever action the method calls for, and the object is then subject to garbage collection. No state is held between calls, and each call (no matter what client it came from) is called on a new object instance.

II.Singleton - The difference in a singleton and single call lies in lifetime management. While single-call objects are stateless in nature, singletons are stateful objects, meaning that they can be used to retain state across multiple method calls. A singleton object instance serves multiple clients, allowing those clients to share data among themselves. (More...)

What's the advantage of using System.Text.StringBuilder over System.String?

StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it's being operated on, a new instance is created. (More...)

What is a Messaging Protocol in webservice?

The format of messages exchanged between Web Services clients and Web Services should be vendor neutral and should not carry details about the technology used to implement the service. Also, the message format should allow for extensions and different bindings to specific transport protocols. SOAP and ebXML Transport are specifications which fulfill these requirements. We expect that the W3C XML Protocol Working Group defines a successor standard (More...)

What is the advantage of specifying WITH GRANT OPTION in the GRANT command?

The privilege receiver can further grant the privileges he/she has obtained from the owner to any other user. (More...)

Advantage of Single Node Topology?

1. Easy to install, configure and manage

2. Least expensive

3. Single cable is required (More...)

Advantage of Bus topology?

1. Installation of devices is easy

2. Requires less cable compared to star topology

3. Less expensive and works better for smaller networks (More...)

Advantage Star Topology?

1. Easy to install, configure, manage and expand

2. Centralized management

3. Addition or removal of device does not affect the whole network (More...)

Advantage of Ring Topology?

1. Data travels at greater speed.

2. No collisions.

3. Handles large volume of traffic. (More...)

Advantage of Mesh Topology?

1. Improves fault tolerance.

2. Failure of one link does not affect entire network.

3. Centralized management is not required. (More...)

Advantage of Tree Topology?

1. Easy to add new devices.

2. Point-to-point wiring for each device.

3. Fault detection is easy. (More...)

Difference between WCF and WebService?

WCF offers more flexibility,reliability over web service as it supports Named pipes, Message Queuing,http, tcp etc. protocols.

Web service only supports http.

WCF can be hosted in IIS, windows activation service, Windows service etc.

Web Service can only be hosted in IIS.

WCF uses system.runtime.serialization for Data Serialization which again provides performance benefits as compared to System.Xml.serialization which web service uses for data serialization.

Also WCF provides more security as compared to Web Service.It has all the power of .net Remoting,Message Queuing etc. (More...)

What are the Advantage of WCF?

1. WCF is interoperable with other services when compared to .Net Remoting,where the client and service have to be .Net.

2. WCF services provide better reliability and security in compared to ASMX web services.

3. In WCF, there is no need to make much change in code for implementing the security model and changing the binding. Small changes in the configuration will make your requirements.

4. WCF has integrated logging mechanism, changing the configuration file settings will provide this functionality. In other technology developer has to write the code.


What are the different types of remote object creation mode in .NET?

There are two types of remote object creation mode. They are,

1. SAO(server activated objects)
2. CAO(client activated objects) (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend