English 中文(简体)
JAX-RPC vs JAX-WS vs JAX-RS web services
原标题:Practical usecase based difference between JAX-RPC vs JAX-WS vs JAX-RS web services

我知道,现在有许多文件可上网查阅,主要介绍技术差异。

但我很想知道,在什么情况下,你比其他原因更喜欢一种特定类型?

这些偏好是否是因为一体化模式/产品支持特定类型?

最佳回答

Thanks for answer. However practical use case difference and when to use what. Both, JAX-WS and JAX-RS have standard implementations. I have come up with the following differences:

RESTful services (Mostly web integration, mobile phone apps)

  • Integration over web will be easy with the REST. Popularly used with the AJAX calls.
  • Not verbose as SOAP services so need less bandwidth hence good to use for the mobile apps.
  • Web services are completely stateless so only for stateless services.

JAX-WS and JAX-RPC are SOAP based services. (采购网络服务)

JAX-WS Java EE later versions support this and standards still evolving. - SOAP based services not preferred for mobile app communication because of heavy payload compare to rest. - More suitable for the enterprise web services where you need interoperability, transactions, message delivery and reliability.

问题回答

JAX-RPCabes about this one. 它是 Java网络服务的旧过时标准。

SOAP-Based web services (也作为参考提供)

REST -full web services

我要补充一下@Arjan Tijms的答复。

JAX-WS uses asynchronous features from Java 5.0,J2EE5.0 JAX-RPC is primarily uses features from J2EE 1.4 and is supported in J2EE 5.0 also.

日本宇宙航空研究开发机构有自己的数据制图模型,覆盖许多数据,没有覆盖数据被绘制为 jx.xml.soap。 SOAP 内容。

JAX-WS数据制图模型是:JAXB,即所有XML表示意图的许诺绘图,如XSD和说明使用,没有XSD,其用处很大,十分复杂,而且限制也很少。

网络服务规格有一些差异,因为规格在日本宇宙航空研究开发公司(RPC)之后已经改变和改进,因此,Jax-WS更具有一些特点。

One thing is common is both are confusing while using them with J2EE 5.0, JavaEE 6.x. The better is Jax-RS or Jersey for new implementations and re-designs. or You can continue with JAX-RPC or JAX-WS.

JavaEE7.0承诺采用新的轻重、开发商和检测器友好型方法,用于教育、科学和技术方面的网络服务。

X 锡马勒堡建筑是一种XML-to-Java具有约束力的技术,通过使chem和 Java物体之间以及XML文件与 Java物体之间的转变,简化了网络服务的开发。





相关问题
IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

ASP.net web services

I am using a web service which sets the Thread.CurrentPrincipal object while logging in and soon later when another webmethod of the same web service accesses Thread.CurrentPrincipal, its different/...

Unity Container Disposing and XML Web Service

I am registering some wrapers over un-managed objects in container. How can I dispose of them at the end of the container s lifetime? Please bear in mind I have an XML Web service.

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

热门标签