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.