Top 27 SOAP Web Services Interview Questions and Answers

Connect with

Q21. What is encoding rules for header entries?

key rule for header encoding as:

  • Header entry is identified by its fully qualified element name, which consists of the namespace URI and the local name. All immediate child elements of the SOAP Header element must be namespace-qualified.
  • The SOAP encodingStyle attribute may be used to indicate the encoding style used for the header entries
  • The SOAP mustUnderstand attribute and SOAP actor attribute may be used to indicate how to process the entry and by whom.

Q22. What is difference between top-down and bottom-up approach of developing web services ?

In the top-down approach, the first WSDL document is created and then Java classes are developed based on the WSDL contract, so if the WSDL contract changes you got to change your Java classes. In the bottom-up approach of web service development, first, create Java code i.e. service interface and its implementation, and then use annotations like @WebService to specify contract or interface and WSDL field will be automatically generated from.

Q23. What are the different core Roles in Web Service architecture?

There are three major roles within the web service architecture −

  • Service Provider: This is the provider/exposer of the web service. The service provider implements the service and makes it available for the consumer via internal wiki or on internet/intranet.
  • Service Consumer/Requestor: This is the consumer of the web service which consumed the exposed by provider/producer.
  • Service Registry: This is a logically centralized directory of services. The registry provides a central place where developers can publish new services or find existing ones. This can be company’s internal wiki , or repository where documentation about service can be found.

Q24. What are the features of XML-RPC?

Following are the features of XML-RPC −

  • XML-RPC is a simple protocol that uses XML messages to perform RPCs.
  • Requests are encoded in XML and sent via HTTP POST.
  • XML responses are embedded in the body of the HTTP response.
  • XML-RPC is platform-independent.
  • XML-RPC allows diverse applications to communicate, it means, a Java client can speak XML-RPC to a python server.
  • XML-RPC is the easiest way to get started with web services.

Q25.What are the features of SOAP?

The features of SOAP as follows:

  • SOAP is platform independent.
  • SOAP is language independent.
  • SOAP is simple and extensible.
  • SOAP is a communication protocol.
  • SOAP is for communication between applications.
  • SOAP is a format for sending messages.
  • SOAP is designed to communicate via Internet.
  • SOAP allows you to get around firewalls.
  • SOAP will be developed as a W3C standard.

Q26. What are the primary security issues with web services?

  • Confidentiality
  • Authentication
  • Network Security

Q27. What are the types of information included in SOAP header?

Suggestions are welcome to rectify error, to improve the list of questions and to share the list of questions to include in this list.


I hope you enjoyed this post of SOAP Web Services Interview Questions and Answers for all levels of Java candidat.
Happy Learning! 🙂

Connect with

Leave a Comment

Your email address will not be published. Required fields are marked *