Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Simplest defination of web services

Answer»

Web service is basicaly a class which contains methods and its methods is to be called by methods on other machines on another network via one of common data formats and protocols like XML and HTTP. In .NET this method calls are commonly implemented through the SOAP(Simple OBJECT Access Protocol) which is an XML based protocol and DESCRIBE how to mark up requests and RESPONSES so that they can be transferred via protocols such as HTTP. Using SOAP data is transmit in a standardized XML based format.

Web service is simply a software component PLACED on one machine that machine can be accessed by an application or software component on another machine over a network. The machine where Web service RESIDES is referred to as a remote machine. The application that accesses the Web service sends a method call over a network to the remote machine, which processes the call and returns a response over the network to the application.

2.

Write down different components used in web services?

Answer»

Write down different components used in web services?
Below are the different components used in web services
(1)WSDL
(2)SOAP
(3)UDDI
(4)RDF
(5)XML
(1)WSDL:-Web Services Description Language(WSDl) is a XML document containing information about web services such as method name, method parameter and how to access it. WSDL is a part of UDDI. WSDL acts as an interface between web service applications. WSDL is pronounced as wiz-dull.
(2)SOAP:-Simple Object Access Protocol(SOAP) is a XML-based protocol to access web services. This is a W3C recommendation for communication between applications. Due to XML based it is platform independent and language independent. In other words, it can be used with Java, .Net or PHP language on any platform.
(3)UDDI:-Universal Description, Discovery and INTEGRATION(UDDI) is a XML based framework for describing, discovering and INTEGRATING web services. It is a directory of web service interfaces described by WSDL, containing information about web services.
(4)RDF:-Resource Description Framework(RDF) is a STANDARD for data interchange, developed and agreed upon by W3C.
(5)XML:-Extensible Markup Language(XML) is a text-based markup language derived from Standard Generalized Markup Language (SGML).

3.

difference between .Net Remoting and Asp.Net Web Services

Answer»

(1)ASP.NET Web Services Can be accessed only over HTTP but .Net Remoting Can be accessed over various protocols LIKE TCP, HTTP, SMTP etc.
(2)Web Services are based on stateless service architecture but .Net Remoting support for both stateful and stateless environment.
(3)Web Services support heterogeneous environments MEANS interoperability across platforms but .Net remoting requires .Net on both server and client end.
(4).NET Remoting provides the fast communication than Web Services when we use the TCP channel and the binary formatter.
(5)Web services support only the objects that can be serialized but .NET Remoting can provide support to all objects that inherit MarshalByRefObject.
(6)Web Services are reliable than .Net remoting because Web services are always hosted in IIS.
(7)Web Services are ease to create and deploy but .Net remoting is bit complex to PROGRAM.