HOME

TheInfoList



OR:

Jakarta XML RPC (JAX-RPC; formerly Java API for XML Based RPC) allows a
Jakarta EE Jakarta EE, formerly Java Platform, Enterprise Edition (Java EE) and Java 2 Platform, Enterprise Edition (J2EE), is a set of specifications, extending Java SE with specifications for enterprise features such as distributed computing and web serv ...
application to invoke a Java-based
web service A web service (WS) is either: * a service offered by an electronic device to another electronic device, communicating with each other via the Internet, or * a server running on a computer device, listening for requests at a particular port over a n ...
with a known description while still being consistent with its
WSDL The Web Services Description Language (WSDL ) is an XML-based interface description language that is used for describing the functionality offered by a web service. The acronym is also used for any specific WSDL description of a web service (also ...
description. JAX-RPC is one of the
Java XML In computing, Java XML APIs were developed by Sun Microsystems, consisting separate computer programming application programming interfaces (APIs). Application programming interfaces * Java API for XML Processing (JAXP) * Java API for XML Messa ...
programming APIs. It can be seen as Java RMIs over web services. JAX-RPC 2.0 was renamed JAX-WS 2.0 ( Java API for XML Web Services). JAX-RPC 1 is deprecated with Java EE 6. The JAX-RPC service utilizes W3C (World Wide Web Consortium) standards like WSDL (Web Service Description Language). The core API classes are located in the
Java package A Java package organizes Java classes into namespaces, providing a unique namespace for each type it contains. Classes in the same package can access each other's package-private and protected members. In general, a package can contain the fo ...
. * Supports web-based services and clients using
RPC RPC may refer to: Science and technology * Rational polynomial coefficient * Reactive Plastic Curtain, a carbon-dioxide-absorbing device used in some rebreather breathing sets * Regional Playback Control, a regional lockout technology for DVDs ...
or remote procedure calls which are based on
XML Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
. * Allow for web service accessibility through Java APIs which in turn allows for communication between different Java applications. * Enables client communication with web service of different language and running on separate platform. It works as follows: #A Java program executes a
method Method (, methodos, from μετά/meta "in pursuit or quest of" + ὁδός/hodos "a method, system; a way or manner" of doing, saying, etc.), literally means a pursuit of knowledge, investigation, mode of prosecuting such inquiry, or system. In re ...
on a
stub Stub or Stubb may refer to: Shortened objects and entities * Stub, a tree cut and allowed to regrow from the trunk; see pollarding * Pay stub, a receipt or record that the employer has paid an employee * Stub period, period of time over which i ...
(local object representing the remote service) #The stub executes routines in the JAX-RPC Runtime System (RS) #The RS converts the remote method invocation into a
SOAP Soap is a salt (chemistry), salt of a fatty acid (sometimes other carboxylic acids) used for cleaning and lubricating products as well as other applications. In a domestic setting, soaps, specifically "toilet soaps", are surfactants usually u ...
message #The RS transmits the message as an
HTTP HTTP (Hypertext Transfer Protocol) is an application layer protocol in the Internet protocol suite model for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web, wher ...
request The advantage of such a method is that it allows the Web service to be implemented at server-side as a
Servlet A Jakarta Servlet, formerly Java Servlet is a Java software component that extends the capabilities of a server. Although servlets can respond to many types of requests, they most commonly implement web containers for hosting web applicat ...
or
EJB Jakarta Enterprise Beans (EJB; formerly Enterprise JavaBeans) is one of several Java APIs for modular construction of enterprise software. EJB is a server-side software component that encapsulates business logic of an application. An EJB web c ...
container. Thus, Servlet or EJB applications are made available through Web services. Jakarta XML RPC (JAX-RPC) was removed from Jakarta EE 9.


References


External links

*
JAX-RPC 2.0 renamed to JAX-WS 2.0
Java API for XML Web service specifications Java enterprise platform {{compu-prog-stub