JAX-RPC

JAX-RPC staat voor Java API for XML-based RPC. JAX-RPC wordt gebruikt bij webservices.

Binnen het objectgeoriënteerd paradigma wordt remote procedure call gebruikt om op afstand code uit te voeren. De Java-variant hiervan is Remote Method Invocation (RMI). JAX-RPC verzorgt communicatie via SOAP-berichten en werkt dus anders dan RMI. Bij RMI worden Java-objecten geserialiseerd en het dient om te communiceren tussen Javaprogramma's die draaien op verschillende locaties.

Werking

Een Javaprogramma roept een methode aan van een zogeheten stub. Zo'n stub is een object dat lokaal beschikbaar is en zelf geen inhoudelijke code bevat, maar dient als communicatiemiddel met een service die zich op een andere machine bevindt. Deze stub roept de routines aan van de JAX-RPC Runtime System. De Runtime System zet de request, die net zoals bij Remote Method Invocation bestaat uit Java-objecten, om in een SOAP-bericht met behulp van JAXB. Vervolgens verstuurt de Runtime System het bericht als een HTTP-request.

Bestaande servlets of EJB-applicaties kunnen volgens hetzelfde principe met JAX-RPC beschikbaar worden gemaakt als webservice.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.