Jakarta XML RPC (JAX-RPC; formerly Java API for XML Based RPC) allows a Jakarta EE application to invoke a Java-based web service with a known description while still being consistent with its WSDL description. JAX-RPC is one of the Java XML 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.[1] The JAX-RPC service utilizes W3C (World Wide Web Consortium) standards like WSDL (Web Service Description Language).[2] The core API classes are located in the Java package javax.xml.rpc.

  • Supports web-based services and clients using RPC or remote procedure calls which are based on XML.
  • 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:

  1. A Java program executes a method on a stub (local object representing the remote service)
  2. The stub executes routines in the JAX-RPC Runtime System (RS)
  3. The RS converts the remote method invocation into a SOAP message
  4. The RS transmits the message as an HTTP request

The advantage of such a method is that it allows the Web service to be implemented at server-side as a Servlet or EJB container. Thus, Servlet or EJB applications are made available through Web services.

Jakarta XML RPC (JAX-RPC) was removed from Jakarta EE 9.[3]

References

edit
  1. ^ JAX-WS vs. JAX-RPC - stackoverflow.com
  2. ^ What is JAX-RPC - qwhatis.com
  3. ^ Kaltepoth, Christian (January 17, 2020). "A deep dive into the Jakarta EE 9 Release Plan". JAXenter. Software & Support Media. Retrieved 2020-12-05.
edit


📚 Artikel Terkait di Wikipedia

Java XML

XML Processing (JAXP) Java API for XML Messaging (JAXM) Jakarta XML RPC (JAX-RPC) — formerly Java API for XML Based RPC deprecated for Java API for XML

JSON-RPC

JSON-RPC (JavaScript Object Notation-Remote Procedure Call) is a JSON-based wire protocol for remote procedure calls (RPC). It is similar to the XML-RPC protocol

Remote procedure call

Notable RPC implementations and analogues include: Java's Remote Method Invocation (Java RMI) API provides similar functionality to standard Unix RPC methods

JSON

standard for JSON-based object references exists. JSON-RPC is a remote procedure call (RPC) protocol built on JSON, as a replacement for XML-RPC or SOAP

SOAP

SOAP with Attachments API for Java SOAP-over-UDP List of web service protocols Message Transmission Optimization Mechanism (MTOM) XML-binary Optimized Packaging

Java Platform, Micro Edition

available for the Java platform. Designed for mobile phones, the Mobile Information Device Profile includes a GUI, and a data storage API, and MIDP 2

Web service

Asynchronous JavaScript and XML (AJAX) is a dominant technology for Web services. Developing from the combination of HTTP servers, JavaScript clients

Comparison of JavaScript-based web frameworks

routing, component-based development, and state management. While native web standards, including Web Components, modern JavaScript APIs like Fetch and ES