This blog is to help you crack interviews related to Java developer positions. This alone would not serve the purpose, and you will have to take help of a Java training institute in Pune to learn Java based skills. They will offer you a Java developer course in Pune.
Web services related questions are generally asked in Software development Positions. We have effectively shared the habitually asked core Java questions and tricky interview questions related to Java.
So following are the answers to the popularly asked web services interview questions.
1. What do you mean by web services?
Web services are client and server applications that communicate over the World Wide Web’s (WWW) HyperText Transfer Protocol (HTTP). Web services provide a standard means of inter operating between software applications compatible on a range of platforms and frameworks.
This definition is as per oracle docs.
– Machine processable explanations
In other words, when we call some individual so the individual dialing and calling is the customer application , while individual getting the call is server application and “hello” word is the convention as like HTTP request.
2. What do you mean by SOAP?
SOAP (Simple Object Access Protocol) is a transport convention for sending and accepting requests and reactions on XML format, which can be utilized on top of transport conventions, for example, HTTP, SMTP, UDP, and so forth.
3. Define REST
REST (REpresentational State Transfer) is a structural style by which data can be transmitted over transport conventions, like HTTP(S).
4. What do you mean by JAXB?
JAXB (Java Architecture for XML Binding) is a Java standard that characterizes how Java objects are changed over from and to XML. It makes perusing and writing of XML by means of Java comparatively simple.
5. Describe what is MTOM
MTOM (Message Transmission Optimization Mechanism) is a technique for transmitting expansive binary attachments with SOAP messages as crude bytes, taking into consideration smaller messages.
6. Define XOP
XOP (XML-binary Optimized Packaging) is a method characterized for the serialization of XML Information Sets that contain binary information, and additionally deserialization over into the XML Information Set.
7. What does SOAP encodingStyle attribute indicate ?
SOAP encodingStyle characterizes the serialization rules utilized as a part of a SOAP message. This attribute may show up on any component, and is checked to that component’s content and all child elements not themselves containing such an attribute. There is no default encoding characterized for a SOAP message.
8. State encoding rules for header entries
the SOAP mustUnderstand attribute and SOAP performer attribute might be utilized to demonstrate how to handle the section and by whom.
a header entry is distinguished by its completely qualified component name, which comprises of the namespace URI and the local name. All prompt child elements of the SOAP Header element must be namespace-qualified.
the SOAP encodingStyle ascribe might be utilized to show the encoding style utilized for the header sections.
9. What is wsimport tool?
The wsimport tool is utilized to parse a current Web Services Description Language (WSDL) document and produce required records (JAX-WS portable artifacts) for web service customer to get to the published web services.
10. Explain the difference between PUT and POST
Need to utilize PUT when can update an asset totally through a particular resource. For instance, if realize that an article dwells at http://javahungry.blogspot.com/article/123, can PUT another asset representation of this article through a PUT on this URL. On the off chance that don’t have the foggiest idea about the real asset location for example, when include another article, can utilize POST.
PUT is idempotent, while POST is most certainly not. It implies if use PUT an object twice, it has no impact.
CRB Tech happens to be a well known training and Java programming institute in Pune.
Checkout Our CRB REVIEWS