InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Name some components that are needed to be published while deploying a web service. |
|
Answer» COMPONENTS that are needed to be published while deploying a web SERVICE includes:
|
|
| 2. |
Name three primary security issues of Web Services? |
|
Answer» The three primary security issues of web SERVICES include:
|
|
| 3. |
What are the advantages of using SOA |
|
Answer» Some of its advantages include:
|
|
| 4. |
What are the different elements of the SOAP Document or message? |
|
Answer» The SOAP message is basically an ordinary XML document CONSISTS of three parts as given below: The following block depicts the general structure of SOAP XML request and response: XML Request <Envelope xmlns=?http://schemas.xmlsoap.org/soap/envelop/?> <Body> <getCourseDetailRequest xmlns=?http://udemy.com/course?> <id>course1</id> <getCourseDetailRequest> </Body> </Envelope>XML Response <SOAP-ENV:Envelope xmlns:SOAP-ENV=?http://schemas.xmlsoap.org/soap/envelope/?> <SOAP-ENV:Header /> <!?empty header--> <SOAP-ENV:Body> <!?body begin--> <ns2:getCourseDetailsResponse xmlns:ns2=?http://in28mi> <!--content of the response--> <ns2:course> <ns2:id>Course1</ns2:id> <ns2:name>Spring<ns2:name> <ns2:description>10 Steps</NS1:description> </ns2:course> </ns2:getCourseDetailResponse> </SOAP-ENV:Body> <!?body end--> </SOAP-ENV:Envelope> |
|
| 5. |
What do you mean by SOAP? Write its advantages. |
|
Answer» SOAP (Simple Object Access Protocol) is an XML-based protocol that is used to access web services. It is simply used to interchange data or information between two devices or computers using request and RESPONSE based on XML format over transport protocols like HTTP, SMTP, etc. |
|
| 6. |
What are the written status codes for REST API? |
|
Answer» REST API generally RETURNS the FOLLOWING status codes in HTTP response: |
|
| 7. |
Name HTTP methods that can be used with RESTful web services. |
|
Answer» Some of the HTTP METHODS that can be used with RESTful web services include:
|
|
| 8. |
Explain the term statelessness with respect to RESTful web Services. Write its advantages. |
|
Answer» Statelessness is basically a condition or restriction where RESTful web services are not allowed to keep a client state on the SERVER as per the REST architecture. Clients are responsible to pass their context to the server. To process the client’s request, the server then further stores this context.
Example: Simple GET Request using NodeJS We have the following sample data in users.json file. Implement our RESTful API listUsers using the following code in a server.js file. Now open a browser and go to http://127.0.0.1:8081/listUsers, we will get the following response: { "user1" : { "name" : "gourav", "password" : "password1", "profession" : "officer", "id": 1 }, "user2" : { "name" : "nikhil", "password" : "password2", "profession" : "teacher", "id": 2 }} |
|
| 9. |
Which protocol is used by RESTful web services? |
| Answer» | |
| 10. |
What are the advantages of RESTful web service? |
|
Answer» There are SEVERAL advantages of RESTful web services as given below:
|
|
| 11. |
What are RESTful Web Services? |
|
Answer» REST (Representational State Transfer) is a stateless client-server architecture style used for developing applications that are accessible over the web. It is a type of web service whose main GOAL is to make web services more EFFECTIVE. It can be defined as the web service that USES HTTP methods for implementing the REST architecture. Unlike SOAP which is protocol-based, RESTFUL services are architecturally based. It does not contain any contract or WSDL file. |
|
| 12. |
Explain the term Synchronicity. |
|
Answer» Synchronicity generally refers to the binding of the client to the function’s execution and it can be DONE in two ways i.e., synchronous and ASYNCHRONOUS. In Synchronous invocations, the client blocks and waits until the service complete its operation before CONTINUING its WORK. In Asynchronous invocations, clients are allowed to invoke a service and execute other FUNCTIONS. |
|
| 13. |
What are the different layers of the web service protocol stack? |
|
Answer» The implementation of web services generally depends on technologies that are often organized in a layered stack. Examining the web service protocol stack is considered as the second option for viewing the web service architecture. In simple words, it is the set of protocols that are used to explore and EXECUTE web services. Currently, the web service protocol stack has four layers as given below: Service Transport: It is generally responsible to transport messages between applications. It basically defines technology standards for communication and allows messages or information to MOVE ACROSS the network without any difficulty. It uses HTTP, SMTP, FTP, and DEEP protocols to transfer information. |
|
| 14. |
What is a Web Service Registry? |
|
Answer» The web service registry is basically LIKE a ‘PHONE BOOK’ for web services. It allows client applications to be able to PUBLISH new services or can locate the already existing ones. Two widely-used registry standards are generally supported by application servers i.e., ebXML (Electronic Business using XML) and UDDI (Universal Description, Discovery, and INTEGRATION). |
|
| 15. |
What is a Web service Requestor? |
|
Answer» Web service REQUESTOR is the client APPLICATION that requests for web service to use it. Its main PURPOSE is to use an existing web service by opening a network connection and SENDING an XML request. In SIMPLE words, they are consumers of the web service. |
|
| 16. |
What is a Web Service Provider? |
|
Answer» Web service generally creates web services and provides ACCESS to the CLIENT application who wants it. Its main purpose is to implement the service and make it available on the Internet so that client applications can USE it whenever required. In simple words, it is a platform that creates and HOSTS web services. |
|
| 17. |
Explain web service Architecture. |
|
Answer» Every framework requires some type of architecture to ensure that the entire framework works perfectly as desired, the same goes for web SERVICES. Web service architecture is used to assist the developer with steps and procedures that are essential to complete the creation. Web service architecture includes THREE distinct roles i.e., service provider, service requester, and service registry. It also includes three different operations that include: |
|
| 18. |
Name the language that is commonly used by UDDI. |
|
Answer» The LANGUAGE commonly used by UDDI is WSDL (WEB SERVICE Description Language). |
|
| 19. |
What are the important features of UDDI? |
|
Answer» Some important features of UDDI include: |
|
| 20. |
What do you mean by UDDI? |
|
Answer» UDDI (Universal Description, Discovery, and INTEGRATION) is a directory service used for describing, publishing, and FINDING web SERVICES. It is also used for CREATING BUSINESS registries. It is based on a set of web standards including HTTP, XML, SOAP, WSDL, XML Schema. Its main goal is to streamline digital transactions and e-commerce among company systems. |
|
| 21. |
What are the features of XML-RPC? |
|
Answer» There are various features of XML-RPC that includes:
|
|
| 22. |
What is XML-RPC? |
|
Answer» XML-RPC (Remote PROCEDURE call) is considered the most basic and SIMPLEST XML-based protocol to exchange DATA among different devices on a network. It uses HTTP as a transport protocol for quickly and easily transferring the information or data between TWO devices. XML-RPC can also be used with different programming languages such as Perl, Java, Python, C, C++, PHP, etc. |
|
| 23. |
Name the tools that are used to test web services. |
|
Answer» There are VARIOUS tools USED to test web service as GIVEN below: |
|
| 24. |
Write the difference between API and Web services. |
||||||||||||||
|
Answer» API (Application Programming Interface): It acts as an interface between two devices so that they can communicate with each other without any user intervention. Some of its FEATURES include customizable, easy integration with GUI, time effective, language-independent, etc. All APIs are not web services.
|
|||||||||||||||
| 25. |
What are the different components of Web Services? |
|
Answer» There are VARIOUS components of web services as GIVEN below:
|
|
| 26. |
What are the important features of Web services? |
|
Answer» Some of the important features of web services include:
|
|
| 27. |
Explain different types of Web Services. |
|
Answer» There are basically two TYPES of web services: SOAP (Simple Object Access Protocol) Web Services: It is also REFERRED to as transport-independent messaging protocol whose main purpose is to TRANSFER a message, and is based on XML protocol. |
|