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. |
Mention What Is The Difference Between A Web Service And Soa? |
|
Answer» SOA is a software design PRINCIPLE and an architectural PATTERN for implementing loosely coupled, reusable and coarse GRAINED services. Using any protocols such as HTTP, HTTPS, JMS, SMTP, etc. you can implement SOA. The message can be in Data TRANSFER Objects or in XML. While web SERVICE is an implementation technology and one of the ways to implement SOA. SOA is a software design principle and an architectural pattern for implementing loosely coupled, reusable and coarse grained services. Using any protocols such as HTTP, HTTPS, JMS, SMTP, etc. you can implement SOA. The message can be in Data Transfer Objects or in XML. While web service is an implementation technology and one of the ways to implement SOA. |
|
| 2. |
List Out Important Characteristics Of Soap Envelop Element? |
|
Answer» The characteristic of SOAP ELEMENT:
The characteristic of SOAP element: |
|
| 3. |
Explain What Is Soap Envelope Element? |
|
Answer» A SOAP ENVELOPE indicates the START and END of the message, so that the receiver knows when an entire message has been received. In other WORDS, a SOAP envelop is a packaging MECHANISM. A SOAP envelope indicates the start and end of the message, so that the receiver knows when an entire message has been received. In other words, a SOAP envelop is a packaging mechanism. |
|
| 4. |
Mention What Is The Endpoint In Web Services? |
|
Answer» IP ADDRESS of the server where the web services are RUNNING is the END POINT in web services. IP address of the server where the web services are running is the end point in web services. |
|
| 5. |
Mention What Is The Transport Method In Soap? |
|
Answer» Application LAYER and transport layers of a network are used by SOAP. HTTP and SMTP are the valid application layer protocol used as transport for SOAP. HTTP is more preferable as it works well with current internet infrastructure especially with firewalls. The SOAP requests can be SENT via an HTTP GET method while the SPECIFICATION INCLUDES DETAILS on HTTP POST only. Application layer and transport layers of a network are used by SOAP. HTTP and SMTP are the valid application layer protocol used as transport for SOAP. HTTP is more preferable as it works well with current internet infrastructure especially with firewalls. The SOAP requests can be sent via an HTTP GET method while the specification includes details on HTTP POST only. |
|
| 6. |
Explain How User Use The Facilities That Are Provided By Soap? |
|
Answer» Put ADDRESS (): It is used to enter an address in the webpage. It carries address instance on the SOAP call. Put Listing (): It is used to enable the insertion of a complete XML document into the webpage. It receives the XML file as an argument and transport the XML file to XML parser liason, which READS it and puts it as a parameter in the SOAP call. Get Address (): It is used to determine a query name and RETRIEVES the result that is best matched with a query. In the form of text STRING, the name is sent to the SOAP call. GetAllListing (): It is used to return the complete list in an XML format. Put Address (): It is used to enter an address in the webpage. It carries address instance on the SOAP call. Put Listing (): It is used to enable the insertion of a complete XML document into the webpage. It receives the XML file as an argument and transport the XML file to XML parser liason, which reads it and puts it as a parameter in the SOAP call. Get Address (): It is used to determine a query name and retrieves the result that is best matched with a query. In the form of text string, the name is sent to the SOAP call. GetAllListing (): It is used to return the complete list in an XML format. |
|
| 7. |
Mention The Advantages Of Soap? |
|
Answer» Advantage of SOAP:
Advantage of SOAP: |
|
| 8. |
Mention What Is The Difference Between Soap Web Service And Restful Web Service? |
|
Answer» SOAP: In SOAP, communication between the client and web service happens using XML MESSAGE. It specifies the communication rules like what are all the tags that should be used in XML and their meaning. Restful: It uses architecture which USE HTTP or SIMILAR protocols by restricting the interface to use standard OPERATIONS like GET, PUT, POST, DELETE for HTTP. SOAP: In SOAP, communication between the client and web service happens using XML message. It specifies the communication rules like what are all the tags that should be used in XML and their meaning. Restful: It uses architecture which use HTTP or similar protocols by restricting the interface to use standard operations like GET, PUT, POST, DELETE for HTTP. |
|
| 9. |
Mention What Are The Syntax Rules For Soap Message? |
|
Answer» SOAP message MUST use encoded XML:
SOAP message must use encoded XML: |
|
| 10. |
Mention What Is Soap Http Binding? |
|
Answer» HTTP WORKS over TCP/IP. The HTTP client links to an HTTP server using TCP. SOAP HTTP is a METHOD that conforms with the SOAP ENCODING rules. HTTP + XML = SOAP A SOAP request could be an – HTTP GET request or HTTP POST The HTTP POST request mentions ATLEAST TWO HTTP headers: Content-Type and Content-Length. HTTP works over TCP/IP. The HTTP client links to an HTTP server using TCP. SOAP HTTP is a method that conforms with the SOAP encoding rules. HTTP + XML = SOAP A SOAP request could be an – HTTP GET request or HTTP POST The HTTP POST request mentions atleast two HTTP headers: Content-Type and Content-Length. |
|
| 11. |
Mention What Is The Response Format For Soap Response? |
|
Answer» SOAP response would be LIKE Content Type: text/xml; CHAR set=utf-8 Content-Length: nnn <? xml version= “1.0”?> <SOAP-ENV: ENVELOP xmlns: SOAP-ENV= http://www.guru99.org/2003/05/soap-envelope” SOAP-ENV: encoding style= http://www.guru99.org/2003/05/soap-encoding> <SOAP-ENV: Body xmlns=http://www.xyz.org/quotation”> <m:GetQuotationResponse> <m:Quotation > Here is the Quotation</m:Quotation> </m:QuotationRequest> </SOAP-ENV: Body> </SOAP-ENV: Envelope> SOAP response would be like HTTP/1.0 200 OK Content Type: text/xml; char set=utf-8 Content-Length: nnn <? xml version= “1.0”?> <SOAP-ENV: Envelop xmlns: SOAP-ENV= http://www.guru99.org/2003/05/soap-envelope” SOAP-ENV: encoding style= http://www.guru99.org/2003/05/soap-encoding> <SOAP-ENV: Body xmlns=http://www.xyz.org/quotation”> <m:GetQuotationResponse> <m:Quotation > Here is the Quotation</m:Quotation> </m:QuotationRequest> </SOAP-ENV: Body> </SOAP-ENV: Envelope> |
|
| 12. |
Mention What Is The Message Format Used In Soap? |
|
Answer» Message format is WRITTEN by USING the XML language. The message format is STANDARD, and it is widely used. The message format is like POST/In Stock HTTP/1.1 Host: local host (www.xyz.org) Content Type: application/soap+xml; char set=utf-8 Content length: 300 SOAPAction: http://www.guru99.org/2003/05/soap-envelop> <? xml version= “1.0”?> <soap: Envelop XMLNS:soap= http://www.guru99.org/2003/05/soap-envelop> <soap: HEADER> </soap: Header> <soap: Body> <m:CareerName>Guru99</m:CareerName> </soap: Body> </soap: Envelope> Message format is written by using the XML language. The message format is standard, and it is widely used. The message format is like POST/In Stock HTTP/1.1 Host: local host (www.xyz.org) Content Type: application/soap+xml; char set=utf-8 Content length: 300 SOAPAction: http://www.guru99.org/2003/05/soap-envelop> <? xml version= “1.0”?> <soap: Envelop xmlns:soap= http://www.guru99.org/2003/05/soap-envelop> <soap: Header> </soap: Header> <soap: Body> <m:CareerName>Guru99</m:CareerName> </soap: Body> </soap: Envelope> |
|
| 13. |
Mention What Is The Major Obstacle Faced By The Users Using Soap? |
|
Answer» The major obstacle faced by the users USING SOAP is a firewall security mechanism. This lock all the ports LEAVING few like HTTP port 80 and the HTTP port used by SOAP that BYPASSES the firewall. The technical complaints against SOAP is that it mixes the specification for MESSAGE transport with the specification for message structure. The major obstacle faced by the users using SOAP is a firewall security mechanism. This lock all the ports leaving few like HTTP port 80 and the HTTP port used by SOAP that bypasses the firewall. The technical complaints against SOAP is that it mixes the specification for message transport with the specification for message structure. |
|
| 14. |
Mention What Is The Difference Between Json And Soap? |
|
Answer» JSON is standard to represent human readable data. SOAP is a PROTOCOL requirement for transmitting information and CALLING web-services using XML. JSON is standard to represent human readable data. SOAP is a protocol requirement for transmitting information and calling web-services using XML. |
|
| 15. |
What Are The Elements Of Soap Message Structure? |
|
Answer» It is an ordinary XML DOCUMENT that contains the ELEMENTS as a SOAP MESSAGE. Envelope: It defines the start and END of the message. Header: It is an optional element. Contains information about the message being sent. Body: It contains the XML data comprising the message being sent. Fault: It provides the information about errors occurred while processing the message. It is an ordinary XML document that contains the elements as a SOAP message. Envelope: It defines the start and end of the message. Header: It is an optional element. Contains information about the message being sent. Body: It contains the XML data comprising the message being sent. Fault: It provides the information about errors occurred while processing the message. |
|
| 16. |
Mention What Is Soap? |
|
Answer» SOAP means Simple Object Access Protocol is a type of communication protocol, a way to structure data prior to transmitting it and is BASED on XML standard. It is developed to ENABLE communication between applications of different PLATFORMS and programming language via internet. It can use the range of protocols such as FTP, HTTP, SMTP, Post office protocol 3(POP3) to carry documents. In other words, it is an XML based protocol to transfer between computers. SOAP means Simple Object Access Protocol is a type of communication protocol, a way to structure data prior to transmitting it and is based on XML standard. It is developed to enable communication between applications of different platforms and programming language via internet. It can use the range of protocols such as FTP, HTTP, SMTP, Post office protocol 3(POP3) to carry documents. In other words, it is an XML based protocol to transfer between computers. |
|