As far as protocol is concerned, .NET Web Service uses HTTP, while, .NET Remoting uses any protocol i.e. TCP/HTTP/SMTP. When it comes to performance, .NET Remoting is comparatively, faster than.NET Web Service. Also, as .NET Web Services are hosted via IIS, therefore, it is far more reliable than the .NET Remoting.
Posted Date:- 2021-09-05 22:05:17
ASP.NET uses a test page routinely, when one calls for the URL of .asmx file in any browser. This page shows complete information regarding web services.
Posted Date:- 2021-09-05 22:04:34
DISCO means discovery. It groups the list of interrelated web services. The organization that provides web services, issues a DISCO file on its server and that file contains the links of all the provided web services. This standard is good when client knows the company already. Also it can be used within a local network as well.
Posted Date:- 2021-09-05 22:03:50
The standards used in web services are WSDL (used to create interface definition), SOAP (used to structure data), HTTP (communication channels), DISCO (used to create discovery documents) and UDDI (used to create business registries).
Posted Date:- 2021-09-05 22:03:14
The biggest advantage of web service is that is supported by wide variety of platforms. Moreover, in near future, web services may spread its boundary and enhance new methods that will provide ease to clients. The enhancement will not affect the clients, even if they offer old methods and parameters.
Posted Date:- 2021-09-05 22:02:32
Web services transfer/receive messages to/from application respectively, via HTTP protocol. It uses XML to encode data.
CORBA and DCOM transfer/receive messages to/from application respectively, via non-standard protocols such as IIOP and RPC.
Posted Date:- 2021-09-05 22:01:58
The increasing ratio of distributed applications has raised demand for distributed technologies. It allows segmenting of application units and transferring them to different computers on different networks.
Posted Date:- 2021-09-05 22:01:08
API testing is now preferred over GUI testing and is considered as most suitable because:
>> It verifies all the functional paths of the system under test very effectively.
>> It provides the most stable interface.
>> It is easier to maintain and provides fast feedback.
Posted Date:- 2021-09-05 21:42:50
If you can overcome the challenges in API Testing, you can be confident in the API testing interview too. They are:
> Parameter Selection
> Parameter Combination
> Call sequencing
> Output verification and validation
> Another important challenge is providing input values, > which is very difficult as GUI is not available in this case.
Posted Date:- 2021-09-05 21:41:47
>> API enables communication between two separate software systems. A software system implementing an API contains functions or subroutines that can be executed by another software system.
>> On the other hand, UI ( User Interface) testing refers to testing graphical interface such as how users interact with the applications, testing application elements like fonts, images, layouts etc. UI testing basically focuses on look and feel of an application.
Posted Date:- 2021-09-05 21:40:38
ASP.NET web services are used when one need to implement three tier architecture in a web service. It allows handy ways to use middle tier components through internet. The main advantage of .NET Web services is that they are capable enough to communicate across firewalls because they use SOAP as transport protocol.
Posted Date:- 2021-09-05 21:39:32
Endpoint class provides useful methods to create endpoint and publish existing implementation as web service. This comes handy in testing web services before making further changes to deploy it on actual server.
Posted Date:- 2021-09-05 21:38:49
These are important headers in Restful web services. Accept headers tells web service what kind of response client is accepting, so if a web service is capable of sending response in XML and JSON format and client sends Accept header as “application/xml” then XML response will be sent. For Accept header “application/json”, server will send the JSON response.
Content-Type header is used to tell server what is the format of data being sent in the request. If Content-Type header is “application/xml” then server will try to parse it as XML data. This header is useful in HTTP Post and Put requests.
Posted Date:- 2021-09-05 21:37:55
Web services are stateless so we can’t maintain user sessions in web services.
Posted Date:- 2021-09-05 21:37:15
REST stands for Representational State Transfer. REST itself is not a standard, while it uses various standards such as HTTP, URL, XML/HTML/GIF/JPEG (Resource Representations) and text/xml, text/html, image/gif, image/jpeg, etc (MIME Types).
Posted Date:- 2021-09-05 21:36:37
The implementations I know are Apache SOAP, JAX-WS Reference Implementation, JAX-RS Reference Implementation, Metro, Apache CXF, MS.NET and Java 6.
Posted Date:- 2021-09-05 21:36:08
In my point of view, the first approach that is the contract-first approach is more feasible as compared to the second one but still it depends on other factors too.
Posted Date:- 2021-09-05 21:35:37
SOA is a design and architecture to implement other services. SOA can be easily implemented using various protocols such as HTTP, HTTPS, JMS, SMTP, RMI, IIOP, RPC etc. While Web service, itself is an implemented technology. In fact one can implement SOA using the web service.
Posted Date:- 2021-09-05 21:35:06
I have used SoapUI for SOAP WS and Firefox poster plugin for RESTFul Services.
Posted Date:- 2021-09-05 21:34:35
UDDI uses the language known as WSDL (Web Service Description Language)
Posted Date:- 2021-09-05 21:33:43
RPC is Remote Procedure Call and as the name suggests, it is the method of calling a procedure or function available on any remote computer.
XML stands for Extensible Markup Language. Thus XML-RPC represents a simple protocol that performs RPCs by using XML messaging. This has been considered an excellent tool for connecting different environments and also establishing connections between wide variety of computers.
Posted Date:- 2021-09-05 21:33:11
Web service protocol stack consists of 4 layers. This can be described as follows:
a) Service transport: This is the first layer that helps in transporting XML messages between various client applications. This layer commonly uses the below-mentioned protocols:
<> HTTP(Hypertext Transport Protocol)
<> SMTP(Simple Mail Transport Protocol)
<> FTP(File Transfer Protocol)
<> BEEP(Block Extensible Exchange Protocol)
b) XML messaging: This layer is based on the XML model where messages are encoded in common XML format which is easily understood by others. This layer includes
<> XML-RPC
<> SOAP(Simple Object Access Protocol)
c) Service description: This layer contains descriptions like location, available functions, and data types for XML messaging which describes the public interface to a specific web service. This layer includes:
WSDL(Web Service Description Language)
d) Service discovery: This layer is responsible for providing a way to publish and find web services over the web. This layer includes:
<> UDDI(Universal Description, Discovery, and Integration)
Posted Date:- 2021-09-05 21:32:38
Many protocols are now available to be used in API testing, such as JMS, REST, HTTP, UDDI and SOAP.
Posted Date:- 2021-09-05 21:29:47
Some of important annotations which are used for creating web services are:
@Path : This is used to set path for URI at class level or method level.
@GET,@POST,@PUT,@DELETE : There are annotations corresponds to HTTP methods.
@Produces(MediaType.TEXT_XML [, more-types ]): @Produces defines which MIME type is delivered by a method.
@PathParam: Used to inject values from the URL into a method parameter.
@Consumes(MediaType.TEXT_XML) : @Cosumes defines which MIME type will be consumed by the method .
Posted Date:- 2021-09-05 21:29:20
Java API for RESTful Web Services (JAX-RS), is a set if APIs to create web service which supports REST architecture. JAX-RS is part of the Java EE6, and help developers to create REST web application easily.
Posted Date:- 2021-09-05 21:28:23
In the web services terms, REpresentational State Transfer (REST) is a stateless client-server architecture in which the web services are viewed as resources and can be identified by their URIs. Web services client uses that URI to access the resource.
Posted Date:- 2021-09-05 21:27:53
In an API interview, they are likely to ask about the advantages of API testing. So be prepared with the significant ones such as:
<> Test for Core Functionality: API testing provides access to the application without a user interface. The core and code-level of functionalities of the application will be tested and evaluated early before the GUI tests. This will help detect the minor issues which can become bigger during the GUI testing.
<> Time Effective: API testing usually is less time consuming than functional GUI testing. The web elements in GUI testing must be polled, which makes the testing process slower. Particularly, API test automation requires less code so it can provide better and faster test coverage compared to GUI test automation. These will result in the cost saving for the testing project.
<> Language-Independent: In API testing, data is exchanged using XML or JSON. These transfer modes are completely language-independent, allowing users to select any code language when adopting automation testing services for the project.
<> Easy Integration with GUI: API tests enable highly integrable tests, which is particularly useful if you want to perform functional GUI tests after API testing. For instance, simple integration would allow new user accounts to be created within the application before a GUI test started.
Posted Date:- 2021-09-05 21:27:27
Web API can be consumed by any clients which support HTTP verbs such as GET, PUT, DELETE, POST. Since Web API services do not require configuration, they can be easily used by any client. In fact, even portable devices such as mobile devices can easily use Web API, which is undoubtedly the biggest advantage of this technology.
Posted Date:- 2021-09-05 21:25:57
wsimport is utility which generates java classes from WSDL. It is part of JDK 6.
Posted Date:- 2021-09-05 21:25:31
This is one of the fundamental Web API interview questions. Bellows are four common Web API architectural styles:
>> HTTP for client-server communication
>> XML/JSON as formatting language
>> Simple URI as the address for the services
>> Stateless communication
Posted Date:- 2021-09-05 21:25:01
<> @WebService
<> @WebMethod
<> @SOAPBinding
Posted Date:- 2021-09-05 21:23:36
JAX-WS stands for Java API for XML Web Services. JAX-WS is standard XML based Java API which is used to create SOAP web services.
Posted Date:- 2021-09-05 21:22:59
REST is the acronym for REpresentational State Transfer. REST is an architectural style for developing applications that can be accessed over the network. REST architectural style was brought in light by Roy Fielding in his doctoral thesis in 2000.
REST is a stateless client-server architecture where web services are resources and can be identified by their URIs. Client applications can use HTTP GET/POST methods to invoke Restful web services. REST doesn’t specify any specific protocol to use, but in almost all cases it’s used over HTTP/HTTPS. When compared to SOAP web services, these are lightweight and doesn’t follow any standard. We can use XML, JSON, text or any other type of data for request and response.
Posted Date:- 2021-09-05 21:22:26
In Top Down approach first WSDL document is created to establish the contract between web service and client and then code is written, it’s also termed as contract first approach. This is hard to implement because classes need to be written to confirm the contract established in WSDL. Benefit of this approach is that both client and server code can be written in parallel.
In Bottom Up approach, first web service code is written and then WSDL is generated. It’s also termed as contract last approach. This approach is easy to implement because WSDL is generated based on code. In this approach client code have to wait for WSDL from server side to start their work.
Posted Date:- 2021-09-05 21:21:41
WSDL stands for Web Service Description Language. WSDL is an XML based document that provides technical details about the web service. Some of the useful information in WSDL document are: method name, port types, service end point, binding, method parameters etc.
Posted Date:- 2021-09-05 21:21:01
UDDI stands for Universal, Description, Discovery, and Integration. It is the discovery layer in the web services protocol stack.
Posted Date:- 2021-09-05 21:20:36
Entrust Identification Service comes from the Entrust Security Transaction Platform. This platform allows companies to control the identities that are trusted to perform transactions for Web services transactions.
Posted Date:- 2021-09-05 21:20:15
As implies from its name, these services are the foundation or basics of integration, authentication, authorization, digital signatures and encryption processes.
Posted Date:- 2021-09-05 21:19:53
Some of the disadvantages of SOAP protocol are:
<> Only XML can be used, JSON and other lightweight formats are not supported.
<> SOAP is based on the contract, so there is a tight coupling between client and server applications.
<> SOAP is slow because payload is large for a simple string message, since it uses XML format.
<> Anytime there is change in the server side contract, client stub classes need to be generated again.
<> Can’t be tested easily in browser
Posted Date:- 2021-09-05 21:19:04
The security level for web services should be more than that of what we say Secure Socket Layer (SSL). This level of security can be only achieved from Entrust Secure Transaction Platform. Web services need this level of security to ensure reliable transactions and secure confidential information .
Posted Date:- 2021-09-05 21:17:58
It means Web Services Description Language. It is basically the service description layer in the web service protocol stock. The Service Description layer describes the user interface to a web service.
Posted Date:- 2021-09-05 21:17:40
The Service Transport layer transfer messages between different applications, such as HTTP, SMTP, FTP, and Blocks Extensible Exchange Protocol (BEEP). The XML Messaging layer encodes messages in XML format so that messages can be understood at each end, such as XML-RPC and SOAP. The Service Description layer describes the user interface to a web service, such as WSDL. The Service Discovery layer centralizes services to a common registry and offer simple publish functionality, such as UDDI.
Posted Date:- 2021-09-05 21:16:42
The initiation of XML in this field is the advancement that provides web service a single language to communicate in between the RPCs, web services and their directories.
Posted Date:- 2021-09-05 21:16:14
One example of web services is IBM Web Services browser. You can get it from IBM Alphaworks site. This browser shows various demos related to web services. Basically web services can be used with the help of SOAP, WSDL, and UDDI . All these, provide a plug-and-play interface for using web services such as stock-quote service, a traffic-report service, weather service etc.
Posted Date:- 2021-09-05 21:15:50
SOAP stands for Simple Object Access Protocol. SOAP is an XML based industry standard protocol for designing and developing web services. Since it’s XML based, it’s platform and language independent. So our server can be based on JAVA and client can be on .NET, PHP etc. and vice versa.
Posted Date:- 2021-09-05 21:15:28
The different components of web services are as follows:
<> SOAP- Simple Object Access Protocol.
<> UDDI- Universal Description, Discovery, and Integration.
<> WSDL- Web Service Description Language.
<> RDF- Resource Description Framework.
<> XML- Extensible Markup Language.
Posted Date:- 2021-09-05 21:14:55
There are two types of web services:
1) SOAP Web Services: Runs on SOAP protocol and uses XML technology for sending data.
2) Restful Web Services: It’s an architectural style and runs on HTTP/HTTPS protocol almost all the time. REST is a stateless client-server architecture where web services are resources and can be identified by their URIs. Client applications can use HTTP GET/POST methods to invoke Restful web services.
Posted Date:- 2021-09-05 21:13:59
Some of the advantages of web services are:
>> Interoperability: Web services are accessible over network and runs on HTTP/SOAP protocol and uses XML/JSON to transport data, hence it can be developed in any programming language. Web service can be written in java programming and client can be PHP and vice versa.
>> Reusability: One web service can be used by many client applications at the same time.
>> Loose Coupling: Web services client code is totally independent with server code, so we have achieved loose coupling in our application.
>> Easy to deploy and integrate, just like web applications.
>> Multiple service versions can be running at same time.
Posted Date:- 2021-09-05 21:12:34
A Web Service can be defined as an application component for communication or say exchanging information between two applications over the network. Web services basically work on a client-server model where web services are easily accessible to client applications over the network.
To enable communication between various applications, web services take the help of open standards like XML (for data tagging), SOAP (for message transferring) and WSDL (to denote service availability).
Posted Date:- 2021-09-05 21:11:36