JAX-WS vs. JAX-RPC

前端 未结 2 1760
迷失自我
迷失自我 2020-12-03 07:16

I wrote 2 webservices, one with Jax-WS and one with Jax-RPC. They just return a String.

I stress-tested both with jMeter and, strangely, thereby Jax-RPC was a bit f

2条回答
  •  悲&欢浪女
    2020-12-03 08:04

    • JAX-RPC 1.0: Which works on java.rmi.Remote interface concept. And uses RemoteException i.e. all remote methods in a service endpoint interface (SEI) throw the standard java.rmi.RemoteException. JAX-RPC 2.0 was renamed JAX-WS 2.0.
    • JAX-WS: uses Annotations @WebService, @SOAPBinding, @WebMethod, @WebParam, @WebServiceClient and so on.
    • Java: JAX-RPC uses Java 1.4. JAX-WS uses Java 5.0.
    • SOAP: JAX-RPC and JAX-WS support SOAP 1.1. JAX-WS also supports SOAP 1.2.
    • XML/HTTP : The WSDL 1.1 specification defined an HTTP binding, which is a means by which you can send XML messages over HTTP without SOAP.JAX-RPC ignored the HTTP binding. JAX-WS adds support for it.
    • WS-I's(web services interoperability organization) Basic Profiles: JAX-RPC supports WS-I's Basic Profile (BP) version 1.0. JAX-WS supports BP 1.1.
    • Data Mapping Model: JAX-RPC has its own data mapping model, JAX-WS's data mapping model is JAXB.

提交回复
热议问题