Interview Questions

AJAX Interview Questions Android Interview Questions Angular 2 Interview Questions AngularJs Interview Questions Apache Presto Interview Questions Apache Tapestry Interview Questions Arduino Interview Questions ASP.NET MVC Interview Questions Aurelia Interview Questions AWS Interview Questions Blockchain Interview Questions Bootstrap Interview Questions C Interview Questions C Programming Coding Interview Questions C# Interview Questions Cakephp Interview Questions Cassandra Interview Questions CherryPy Interview Questions Clojure Interview Questions Cobol Interview Questions CodeIgniter interview Questions CoffeeScript Interview Questions Cordova Interview Questions CouchDB interview questions CSS Buttons Interview Questions CSS Interview Questions D Programming Language Interview Questions Dart Programming Language Interview Questions Data structure & Algorithm Interview Questions DB2 Interview Questions DBMS Interview Questions Django Interview Questions Docker Interview Questions DOJO Interview Questions Drupal Interview Questions Electron Interview Questions Elixir Interview Questions Erlang Interview Questions ES6 Interview Questions and Answers Euphoria Interview Questions ExpressJS Interview Questions Ext Js Interview Questions Firebase Interview Questions Flask Interview Questions Flex Interview Questions Fortran Interview Questions Foundation Interview Questions Framework7 Interview Questions FuelPHP Framework Interview Questions Go Programming Language Interview Questions Google Maps Interview Questions Groovy interview Questions GWT Interview Questions Hadoop Interview Questions Haskell Interview Questions Highcharts Interview Questions HTML Interview Questions HTTP Interview Questions Ionic Interview Questions iOS Interview Questions IoT Interview Questions Java BeanUtils Interview Questions Java Collections Interview Questions Java Interview Questions Java JDBC Interview Questions Java Multithreading Interview Questions Java OOPS Interview Questions Java Programming Coding Interview Questions Java Swing Interview Questions JavaFX Interview Questions JavaScript Interview Questions JCL (Job Control Language) Interview Questions Joomla Interview Questions jQuery Interview Questions js Interview Questions JSF Interview Questions JSP Interview Questions KnockoutJS Interview Questions Koa Interview Questions Laravel Interview Questions Less Interview Questions LISP Interview Questions Magento Interview Questions MariaDB Interview Questions Material Design Lite Interview Questions Materialize CSS Framework Interview Questions MathML Interview Questions MATLAB Interview Questions Meteor Interview Questions MongoDB interview Questions Moo Tools Interview Questions MySQL Interview Questions NodeJS Interview Questions OpenStack Interview Questions Oracle DBA Interview Questions Pascal Interview Questions Perl interview questions Phalcon Framework Interview Questions PhantomJS Interview Questions PhoneGap Interview Questions Php Interview Questions PL/SQL Interview Questions PostgreSQL Interview Questions PouchDB Interview Questions Prototype Interview Questions Pure CSS Interview Questions Python Interview Questions R programming Language Interview Questions React Native Interview Questions ReactJS Interview Questions RequireJs Interview Questions RESTful Web Services Interview Questions RPA Interview Questions Ruby on Rails Interview Questions SAS Interview Questions SASS Interview Questions Scala Interview Questions Sencha Touch Interview Questions SEO Interview Questions Servlet Interview Questions SQL Interview Questions SQL Server Interview Questions SQLite Interview Questions Struts Interview Questions SVG Interview Questions Swift Interview Questions Symfony PHP Framework Interview Questions T-SQL(Transact-SQL) Interview Questions TurboGears Framework Interview Questions TypeScript Interview Questions UiPath Interview Questions VB Script Interview Questions VBA Interview Questions WCF Interview Questions Web icon Interview Questions Web Service Interview Questions Web2py Framework Interview Questions WebGL Interview Questions Website Development Interview Questions WordPress Interview Questions Xamarin Interview Questions XHTML Interview Questions XML Interview Questions XSL Interview Questions Yii PHP Framework Interview Questions Zend Framework Interview Questions Network Architect Interview Questions

Top 30 Web Service Interview Questions for 2022

1) What is a Web Service?

Web service is a client server application or component. It is used for communication. It is way to communicate between two devices over network. In another word we cans say that it is collection protocols for exchanging information between two devices or application.

2) What are the components of Web Service?

Web Service components are:
  • SOAP (Simple Object Access Protocol)
  • UDDI (Universal Description, Discovery and Integration)
  • WSDL (Web Services Description Language)

3) What are the advantages of Web service?

Web Service advantages are:
  • Interoperability: It is used to communicate with other application. It can be developed in any other Programming language.
  • Reusability: One Web services can be used by many client applications at the same time.
  • Modularity: we can create a service for a specific task such as tax calculation etc.
  • Loose Coupling: Web Services client code is independent with server code.

4) What are the features of Web Service?

Web Service features are:
It is available over the Internet or private (intranet) networks.
It uses a standardized XML messaging system.
It is not tied to any one operating system or programming language.
It is self-describing via a common XML grammar.
It is discoverable via a simple find mechanism.

5) What are the core roles in Web architecture?

The core roles in Web architecture are:
  • Service Provider
  • Service Requestor
  • Service Registry

6) What is SOAP?

SOAP stands for Simple Object Access Protocol. It is XML-based protocol for accessing web services.

7) What are the test tools for Web service?

The following test tools for Web Service are:
  • SoapUI tool : It is used for testing SOAP and RESTful web services
  • Poster: It is used for Firefox browser
  • Postman: It is extension for Chrome

8) What is the difference between SOAP and REST?

The difference between SOAP and REST are listed below table.
SOAP REST
It is a protocol. It is an architectural style.
It stands for Simple Object Access Protocol. It can use soap because it uses any other protocols.
It uses services interfaces to expose the business logic. It uses URI to expose business logic.
It permits XML data format only. It permits different data format such as HTML, XML, JSON etc.

9) What is WSDL?

WSDL stands for Web Services Description Language. It is a XML document that contains information about Web services.

10) What are the features of SOAP?

The features of SOAP are listed below:
  • It is a communication protocol.
  • It is used for communication between applications.
  • It is a format for sending messages.
  • It is designed to communicate via Internet.
  • It is platform independent and Language independent.
  • It allows us to get around firewalls.

11) What is UDDI?

UDDI stands for Universal Description Discovery Integration. It is XML based framework for describing and integrating the web services.

12) What are the advantages of RESTful Web Service?

The advantages of RESTful web service are:
It is language independent
It is platform independent
It is fast and lightweight protocol.
It can use SOAP.
It allows different data format.
It is methods that can be tested easily over browser.

13) What are the packages of XML digital signatures API?

The packages of XML Digital signatures API are:
xml.crypto
xml.crypto.dsig
xml.crypto.dsig.keyinfo
xml.crypto.dsig.spec
xml.crypto.dom
xml.crypto.dsig.dom

14) What is the use of XML in web Services?

In Web Services, XML is used to tag the data or format the data.

15) What are the primary security issues with web services?

The primary security issues with web services are:
  • Confidentiality
  • Authentication
  • Network Security

16) There are various types of web services protocols:

There are various types of web services protocols:
  • HTTP(Hypertext Transport Protocol)
  • SMTP(Simple Mail Transport Protocol)
  • FTP(File Transfer Protocol)
  • BEEP(Block Extensible Exchange Protocol)
  • XML-RPC
  • SOAP(Simple Object Access Protocol) etc.

17) What is BEEP in Web Services?

In Web services, BEEP stands for Blocks Exchange Protocol. It is used to build new protocols for the variety of applications.

18) What are the different HTTP methods supported by Web services?

There are HTTP methods supported by Web services.
  • GET: Read-only access to the resource.
  • PUT: Creation of new resource.
  • DELETE: Removal of a resource.
  • POST: Update of an existing resource.
  • OPTIONS: Get supported operations on the resource.
  • HEAD: Returns HTTP header only, nobody.

19) What is the use of WSDL in a web service?

In web service, WSDL is used to describe the availability of service.

20) What are the core components of HTTP request in web services?

In web services, the core components of HTTP request are given below:
HTTP Requests Description
Verb Indicate HTTP methods like GET, PUT, POST, etc
URI Identifies the resource on server
HTTP Version Indicates version.
Request Header Contains metadata like client type, cache settings, message body format, etc for HTTP request message.
Request Body Represents content of the message.

21) Write the syntax rules applicable for SOAP message?

The syntax rules applicable for SOAP message are given below:
  • Must be encoded using XML.
  • Must use the SOAP envelope namespace.
  • Must use the SOAP encoding namespace.
  • Must not contain the DTD reference.
  • Must not contain XML processing instructions.

22) What are the primary security issues of web services?

The primary security issues of web services are:
  • Confidentiality
  • Authentication
  • Network Security

23) What is DISCO?

DISCO means discovery. It is the groups of interrelated web services. It provides consolidated directory for web services issues.

25) What is Stax?

Stax stands for Streaming API for XML. It is an API that is used to read and write XML document.

26) What are the six packages available in XML Digital signature API?

Digital signature API are given below:
xml.crypto
xml.crypto.dsig
xml.crypto.dsig.keyinfo
xml.crypto.dsig.spec
xml.crypto.dom
xml.crypto.dsig.dom

27) What are the advantages of SOAP in Web services?

The advantages of SOAP in Web services are given below:
  • WS Security
  • Language Independent
  • Platform Independent

28) What is XML-RPC?

XML-RPC is a simple protocol that uses XML message to perform RPCs.

29) What is WSDL?

WSDL is an XML-based language for describing web services and how to access them.

30) How can we handle Network security threats in Web services?

We can handle Network security threats by using two ways:
  • Filter out all HTTP POST requests that set their content type to text/xml.
  • Filter the SOAP action HTTP header attribute.