SOAP Web Service Interview Questions

Question 1:

What is SOAP?

SOAP is a lightweight, XML-based protocol that you can use to exchange information in a decentralized, distributed environment. You can use SOAP to query and return information and to invoke services across the Internet with SOAP messages.

Question 2:

Define WSDL?

Web Services Description Language(WSDL) is an XML-based language which allows a Web service to document the messages it receives and sends. In other words, what "actions" or "functions" the service performs in terms of the messages it receives and sends.

Question 3:

What are the types of information included in SOAP header?

The SOAP header is an optional section in the SOAP envelope, although some WSDL files require that a SOAP header is passed with each request. A SOAP header contains application-specific context information (for example, security or encryption information) that is associated with the SOAP request or response message. There is only one SOAP header section in a SOAP request. If the SOAP header element is present, it must be the first child element of the envelope element. SOAP headers can be input, output, or input and output, and you do not need to specify them in the WSDL file.

For example: SOAP Header which includes authentication information

SOAP Envelop with Header

Question 4:

What are the disadvantages of SOAP?

  • SOAP clients do not hold any stateful references to remote objects.
  • The verbosity of the protocol led to the domination of REST (architectural style) web service.
  • Serialization by value and not by reference.
Question 5:

What is UDDI?

The Universal Description, Discovery & Integration (UDDI) specification defines a registry service for web services. A UDDI registry service manages information about service providers, service implementation & sservice metadata. One who wish to consumer web services provided by Service provider can use UDDI to discover services.

Question 6:

How a SOAP message is structured?

Each SOAP message must contain a SOAP envelope element. The SOAP envelope describes what is in the message and provides instructions about how to process it. The SOAP envelope has two child elements: a body (required) and a header (optional). All the elements must be declared in the namespace for the SOAP envelope.

SOAP Envelop

Question 7:

What tools do you use to test your Web Services?

List of tools to use REST web services:

  • POSTMAN in Chrome
  • Rest Client in FireFox

List of tools  to use SOAP web services:

Question 8:

Can you send soap messages with attachments?

Yes, we can send soap messages with attachments using one of the following:

  • MTOM - a technology for optimized transfer of binary data in SOAP Messages.
  • SOAP with Attachments  - a MIME-based attachment mechanism for the SOAP/HTTP binding.
Question 9:

What are the advantages of SOAP?

  • SOAP is platform independent.
  • SOAP is language independent.
  • SOAP is versatile enough to allow for the use of different transport protocols. The standard stacks use HTTP as a transport protocol, but other protocols also can be used.
  • SOAP is vendor neutral.
  • SOAP is very simple compared to RMI, CORBA, and DCOM because it does not deal with certain auxiliary features but important aspects of remote object systems.
  • SOAP can be used to exchange information in a decentralized and distributed environment.
Question 10:

What is a web service endpoint?

The endpoint is the URL where web service can be accessed by a client application. There can be multiple endpoints for the same service for different protocols.

Share interview questions


comments powered by Disqus


Social Media