Question 1. What Are The Different Application Integration Styles?
There are a number of extraordinary integration styles like
batch document transfer
Invoking remote techniques (RPC)
Exchanging asynchronous messages over a message oriented center-ware (MOM).
Question 2. What Are The Different Styles Of Web Services Used For Application Integration?
SOAP WS and Restful Web Service
Adv Java Interview Questions
Question three. What Are The Differences Between Both Soap Ws And Restful Ws?
The SOAP WS helps each faraway process call (i.E. RPC) and message orientated middle-ware (MOM) integration styles. The Restful Web Service helps best RPC integration style.
The SOAP WS is transport protocol neutral. Supports multiple protocols like HTTP(S), Messaging, TCP, UDP SMTP, and many others. The REST is delivery protocol specific. Supports only HTTP or HTTPS protocols.
The SOAP WS permits handiest XML information layout.You outline operations, which tunnels via the POST. The cognizance is on accessing the named operations and exposing the software good judgment as a carrier. The REST permits more than one statistics codecs like XML, JSON statistics, text, HTML, etc. Any browser may be used due to the fact the REST approach uses the standard GET, PUT, POST, and DELETE Web operations. The recognition is on getting access to the named assets and exposing the information as a service. REST has AJAX help. It can use the XMLHttpRequest object. Good for stateless CRUD (Create, Read, Update, and Delete) operations.
GET - study()
POST - create()
PUT - update()
DELETE - delete()
SOAP based totally reads can not be cached. REST based reads can be cached. Performs and scales better.
SOAP WS helps both SSL protection and WS-protection, which provides a few employer security functions like preserving protection proper as much as the point in which it's miles needed, keeping identities via intermediaries and not just point to point SSL best, securing special components of the message with distinct protection algorithms, and many others. The REST helps only point-to-factor SSL security. The SSL encrypts the complete message, whether all of it is touchy or not.
The SOAP has complete support for each ACID based totally transaction management for quick-lived transactions and repayment based transaction control for lengthy-going for walks transactions. It also supports -section commit throughout disbursed sources. The REST helps transactions, however it is neither ACID compliant nor can provide two section dedicate across distributed transactional sources as it's miles constrained by using its HTTP protocol.
The SOAP has achievement or retry logic constructed in and gives end-to-give up reliability even through SOAP intermediaries. REST does not have a trendy messaging gadget, and expects clients invoking the provider to address verbal exchange screw ups by way of retrying.
Question four. How Would You Decide What Style Of Web Service To Use? Soap Ws Or Rest?
In general, a REST based totally Web carrier is preferred because of its simplicity, performance, scalability, and guide for more than one facts formats. SOAP is preferred in which carrier requires complete aid for protection and transnational reliability.
Adv Java Tutorial
Question 5. What Tools Do You Use To Test Your Web Services?
SoapUI device for SOAP WS and the Firefox "poster" plugin for RESTFul offerings.
J2EE Interview Questions
Question 6. What Is The Difference Between Soa And A Web Service?
SOA is a software program layout precept and an architectural pattern for enforcing loosely coupled, reusable and coarse grained services. You can put into effect SOA the use of any protocols inclusive of HTTP, HTTPS, JMS, SMTP, RMI, IIOP (i.E. EJB makes use of IIOP), RPC and so forth. Messages can be in XML or Data Transfer Objects (DTOs).
Web carrier is an implementation era and one of the methods to put into effect SOA. You can build SOA based packages without the use of Web services – as an example by means of using different traditional technology like Java RMI, EJB, JMS based messaging, and so on. But what Web services provide is the standards primarily based and platform-independent service via HTTP, XML, SOAP, WSDL and UDDI, as a result allowing interoperability among heterogeneous technology consisting of J2EE and .NET.
Question 7. Web Services When You Can Use Traditional Style Middle-ware Such As Rpc, Corba, Rmi And Dcom?
The traditional center-wares tightly couple connections to the programs and it may destroy in case you make any amendment on your application. Tightly coupled applications are difficult to maintain and less reusable. Generally do no longer guide heterogeneity. Do not work throughout Internet. Can be greater costly and hard to apply.
Web Services help loosely coupled connections. The interface of the Web provider provides a layer of abstraction among the consumer and the server. The loosely coupled packages lessen the price of preservation and increases re-usability. Web Services present a brand new shape of middle-ware based totally on XML and Web. Web offerings are language and platform independent. You can develop a Web carrier the usage of any language and install it directly to any platform, from small device to the biggest supercomputer. Web carrier makes use of language neutral protocols which includes HTTP and communicates between disparate programs by means of passing XML messages to each different through a Web API. Do work throughout internet, much less expensive and easier to apply.
J2EE Tutorial Core Java Interview Questions
Question 8. What Are The Different Approaches To Developing A Soap Based Web Service? A. 2 Approaches?
The settlement-first technique, where you outline the contract first with XSD and WSDL and the generate the Java classes from the agreement.
The contract-closing method where you define the Java lessons first after which generate the contract, that's the WSDL record from the Java instructions.
Note: The WSDL describes all operations that the service presents, locations of the endpoints (i.E.E where the services can be invoked), and simple and complicated elements that may be exceeded in requests and responses.
Question 9. Explain Each Web Service Technologies - Soap, Wsdl, Uddi, Ebxml And Jax Pack.
SOAP: Simple Object Access Protocol is a protocol that is used to trade dependent statistics at the time of enforcing an internet service. SOAP is trusted XML. Message layout of SOAP typically relies on any other protocol of different application layers. Among those the most splendid software layer is Remote Procedure Call and HTTP. SOAP forms the foundation layer for internet services protocol stack. This stack gives the simple framework for messaging on which the net offerings are constructed.
WSDL: Web Service Definition Language is used to describe an internet provider based on XML. WSDL is used for describing Web Services and to find the offerings. WSDL includes the facts on what the service is all about, its dwelling vicinity and the way of invocation the carrier.
UDDI Universal Discovery Description Integration: To submit and find out the facts approximately web offerings, UDDI is a specification. It is an XML based standard. This standard is used for describing, publishing, and locating services. These offerings are determined in a allotted surroundings thru using a server known as registry server.
Electronic Business the usage of XML: EBXML is one from XML family this is based totally on the requirements of OASIS and UN/CEFACT. The venture of this standard is to offer an open xml-primarily based infrastructure which could allow the global use of e-enterprise in an interoperable, comfortable and constant manner by using all the partners of trading. This is a unique architecture with precise concepts which can be component principle and part applied inside the existing EBXML requirements.
JAX PACK: A java API for xml p.C. That integrates all of the programming interfaces through SUN for exceptional web offerings improvement. All these interfaces are made as a single down load. JAX PACK is a package deal of JAXB,J AXM, JAX-RPC, and JAXR. Jax % consists of the documentations for aid for the SAX, DOM.SOAP, WSDL, XSLT, EBXML, UDDI requirements.
MySQL Interview Questions
Question 10. Explain The Technologies Included Within Jax Pack, I.E. Jaxp, Jaxb, Jaxm, Jax-rpc, Jaxr.
JAXP: Java API for xml processing. It offers the validation functionality and parsing XML files. There are 3 basic parsing interfaces in JAXP are DOM, SAX and Straming API for XML STAX.
JAXB: Java Architecture for XML Binding: The java lessons are mapped to XML representations. The two most important capabilities of JAXB are the capacity to marshal Java gadgets into XML and unmarshal XML again to Java items.
The Java API for XML Messaging (JAXM) enables distributed software program programs to speak the use of XML (and SOAP). JAXM supports both asynchronous and synchronous messaging.
JAX-RPC: Java API for XML based RPC. Allows a java based net carrier that is to be invoked by using a Java software supplied the outline, nevertheless being consistent with WSDL description. This can resemble as Java RMI over internet offerings.
Allowing a web provider to be applied at server aspect as a servlet/jsp or EJB container is the benefit of JAX-RPC.
Core Java Tutorial
Question eleven. Explain The Web Services Architecture.
The operations among unique software program applications, which are strolling on an expansion of systems and frameworks are supported by means of a preferred called Web offerings. The net offerings architecture gives the concepts, version and expertise web offerings and relationships most of the additives.
The WSA specifies the minimal characteristics that are very common for all web services and some of traits to the wished web services. WSA is referred to as interoperability architecture which means the global elements of a global net service network are recognized through this architecture which will perform the interoperability among the internet services.
JSP Interview Questions
Question 12. What Are Smart Web Services?
A clever internet service understands the situational context and able to sharing the context with different offerings. The result of this web service is based totally at the desires like who, what, when, wherein it turned into called.
The client’s identification, position of a purchaser, safety rules, bodily location of a client, type of customer tool are some of the variety of the situational situations of that a smart internet provider is aware of.
Adv Java Interview Questions
Question 13. What Is Web Services?
Web Services are the additives that provide capability thru net, makes use of wellknown protocol along with HTTP. Web offerings use SOAP to reveal capability that is an XML-based totally protocol that allows 2 disparate components to talk. So net services hosted on home windows platform can without difficulty be fed on Linux and UNIX platform.
Question 14. What Is Soap?
SOAP is an XML-based protocol that permits 2 components to speak each other. It has the guidelines to translate platform unique statistics into the XML format. Web services are primarily based on SOAP protocol so as to reveal their capability to disparate software and platform.
Question 15. Explain Jaxr?
JARX is a general API which might be used to get right of entry to XML registries (listing of services available at the internet) from the JAVA platform. Client application can use JARX API to query the registries. It acts as a pluggable layer that lets in get admission to to registries implemented on distinct standards including UDDI.
Java-Springs Interview Questions
Question sixteen. Explain Jax-rpc?
JAX-RPC makes use of SOAP to call faraway procedures. JAX-RPC permits JAX-RPC customers to invoke web services evolved throughout heterogeneous platform.
Question 17. What Are Web Services?
Web services exposes capability over net the use of protocol together with HTTP. Web services may be accessed by way of disparate packages from distinct platforms as they use SOAP protocol to show the enterprise functionality. SOAP is a platform unbiased protocol, so the patron of the internet services doesn’t must recognise any implementation element of web services based additives. This is the motive why internet services hosted on home windows may even be accessed with the aid of LINUX client.
JMS(Java Message Service) Interview Questions
Question 18. Explain Jaxm Messaging Models?
JAXM messaging fashions has kinds of messaging model, synchronous and asynchronous.
Synchronous messaging version
In this sort of model, consumer directly interacts with the supply. The patron sends a request and waits for the reaction.
Asynchronous messaging model
In this version, client sends message to the messaging company and returns lower back. Messaging company then performs the routing of message to the stop supply.
J2EE Interview Questions
Question 19. What Is Jaxb?
Java Architecture for XML Binding: The java training are mapped to XML representations. The two predominant features of JAXB are the capacity to marshal Java items into XML and unmarshal XML returned to Java gadgets.
The Java API for XML Messaging (JAXM) permits distributed software applications to communicate the use of XML (and SOAP). JAXM helps each asynchronous and synchronous messaging.
Question 20. What Is Jaxp?
Java API for xml processing. It gives the validation functionality and parsing XML files. There are three fundamental parsing interfaces in JAXP are DOM, SAX and Streaming API for XML STAX.
Java applet Interview Questions
Question 21. What Is Jax-rpc?
Java API for XML primarily based RPC. Allows a java primarily based web carrier this is to be invoked via a Java utility provided the description, still being steady with WSDL description. This can resemble as Java RMI over net offerings.
Allowing an internet service to be implemented at server facet as a servlet/jsp or EJB container is the benefit of JAX-RPC.
Question 22. Explain The Technologies Included Within Jax Pack, I.E. Jaxp, Jaxb, Jaxm, Jax-rpc, Jaxr?
Included in the package deal are Java API for XML Processing (JAXP) JAXP enables packages to parse, remodel, validate and query XML files. It makes use of an API that is impartial of a specific XML processor implementation.
JAXP enables carriers to provide their own implementations with out introducing dependencies in application code.
Question 23. Explain Java Architecture For Xml Binding (jaxb)?
XML is a preferred for exchanging information throughout heterogeneous systems. Java affords a platform for constructing portable programs.
A mixture of these two permits customers and alertness builders to software Web based totally functionality on an platform.
Java Interview Questions
Question 24. Explain Java Api For Xml Messaging (jaxm)?
JAXM is a SOAP 1.1 primarily based trendy to send XML files over the Internet from the Java platform.
JAXM can be extended to work with better level messaging protocols by adding the protocol functionality on pinnacle of SOAP.
Core Java Interview Questions
Question 25. Explain Java Api For Xml-based totally Rpc (jax-rpc)?
JAX-RPC undertaking presents the code base for the Reference Implementation of JAX-RPC, the Java APIs for XML based RPC. JAX-RPC RI is a production-pleasant implementation that is used without delay in a number of merchandise by way of Sun and other vendors.
Java eight Tutorial
Question 26. Explain Java Api For Xml Registries (jaxr)?
JAXR offers you a uniform manner to apply commercial enterprise registries which are primarily based on open standards (ebXML) or enterprise consortium-led specs (UDDI).
Java 8 Interview Questions
Question 27. Explain The Web Services Architecture?
The operations among exclusive software programs, which can be strolling on a selection of platforms and frameworks are supported by a wellknown called Web offerings. The internet offerings architecture provides the principles, model and information internet offerings and relationships many of the additives.
The WSA specifies the minimal characteristics which are very common for all net services and some of characteristics to the needed web services. WSA is referred to as interoperability structure that means the worldwide factors of a worldwide net provider network are recognized by means of this structure as a way to perform the interoperability among the web offerings.
MySQL Interview Questions
Question 28. Do You Know Jax-rpc?
JAX-RPC uses SOAP to name remote processes. JAX-RPC enables JAX-RPC customers to invoke internet offerings advanced throughout heterogeneous platform.
Question 29. Can You Explain Soap?
SOAP is an XML-based totally protocol that allows 2 additives to talk each other. It has the regulations to translate platform particular statistics into the XML layout. Web services are based totally on SOAP protocol so as to expose their functionality to disparate application and platform.
Web testing Interview Questions
Question 30. Explain Wsdl?
Web Service Definition Language is used to describe an internet service based totally on XML. WSDL is used for describing Web Services and to find the services. WSDL includes the facts on what the service is all about, its dwelling place and the manner of invocation the carrier.
Question 31. Explain Uddi Universal Discovery Description Integration?
To post and discover the information approximately web offerings, UDDI is a specification. It is an XML based totally preferred. This popular is used for describing, publishing, and finding offerings. These offerings are found in a disbursed environment through using a server known as registry server.
Question 32. Explain Electronic Business Using Xml?
EBXML is one from XML circle of relatives that is primarily based at the requirements of OASIS and UN/CEFACT. The mission of this popular is to offer an open xml-based totally infrastructure which could enable the global use of e-commercial enterprise in an interoperable, comfortable and consistent manner by means of all of the partners of trading. This is a unique architecture with precise principles which might be part idea and component carried out within the current EBXML standards.
XML-RPC Interview Questions
Question 33. Explain Jax Pack?
A java API for xml percent that integrates all of the programming interfaces by way of SUN for one of a kind net offerings improvement. All these interfaces are made as a single down load. JAX PACK is a package of JAXB,JAXM,JAX-RPC,and JAXR. Jax % includes the documentations for support for the SAX, DOM.SOAP, WSDL, XSLT, EBXML, UDDI requirements.
JSP Interview Questions
Question 34. Explain Each Web Service Technologies - Soap, Wsdl, Uddi, Ebxml And Jax Pack?
A Simple Object Access Protocol (SOAP) permits the heterogeneous running machine to talk with each other by using Hypertext Transfer Protocol (HTTP) and its Extensible Markup Language (XML) as the mechanisms for records trade.
Web Services Description Language (WSDL) is an XML-primarily based language used to explain the offerings business offers, which can be accessed electronically.
Universal Description Discovery and Integration (UDDI) is a specification for preserving standardized directories of statistics approximately Web offerings in a universally diagnosed format. It records their abilities, region and requirements.
The ebXML Messaging Service specification (ebMS) extends the SOAP specification. It offers the safety and reliability functions. It is supported via a diffusion of commercial and open source software program implementations.
Due to the interoperability of its implementations, ebMS is a robust complement or maybe alternative to different web provider specs.
The Java APIs for XML (JAX) Pack integrates all of Sun's programming interfaces for net services development and makes them to be had as a single download.