Java Web Services Related Q&A for Interviews Strategies For Beginners

Page 1

Top 10 Java Web Services Related Q&A for Interviews •

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 . 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. Main characteristics: – Extensibility – Interoperability – 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. 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.

e.g. SOAP-ENV:encodingStyle=”http://www.w3.org/2001/12/soap-encoding”

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


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.