本文介绍了Metro与Java的JAX-WS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Java的JAX-WS和Metro的区别是什么?根据我的研究,JAX-WS已经是JDK 6的一部分了。然而,JAX-WS的实现是两个不同的JAX-WS实现吗?不包含JDK的标准包,所以我查找了Java EE jar。但是,Oracle似乎并未托管已编译的Java EE jar,而是提供了Glassfish,它是一个Java EE服务器。

我能够在Glassfish上运行我的Web服务。 Glassfish使用哪些JAX-WS实现?由于它托管在Oracle上,我假设它正在使用JAX-WS的Java实现,这应该是JDK 1.6的一部分?我的假设是否正确?另外,要运行基于JAX-WS的Web服务,我需要下载JAX-WS jar。我找到了。但在页面上,我看到地铁的链接是Glassfish的一个子链接。所以我现在感到困惑。 Glassfish使用Metro吗?或者是Glassfish使用Java的JAX-WS?

Metro和Java的JAX-WS是否一样?

JAX-WS是一个API,而Metro是JAX-WS API的参考实现;都来自Sun / Oracle,因此是标准的。您可以将它们视为接口(JAX-WS)和实现接口(Metro)的类,仅在更高级别上。 Glassfish也使用Metro作为JAX-WS的实现。



需要指出的是Metro包含JAXB和其他API的实现。



另外,SOAP Web服务在某种程度上已经过时;新的趋势是使用REST Web服务; JAX-RS(从标准Jersey到Restlet或CXF的各种实现)。

What is/are the difference/s of Java's JAX-WS and Metro? Are they the same of are they two different JAX-WS implementations?

According to my research, JAX-WS is already a part of JDK 6. However, JAX-WS does not come with the standard bundle of JDK so I looked for a Java EE jar. However, it seems that Oracle does not host a compiled Java EE jar but instead provides Glassfish which is a Java EE server.

I was able to run my web service on Glassfish. What JAX-WS implementation does Glassfish use? Since it's hosted on Oracle, I'm assuming that it is using Java's implementation of JAX-WS which is supposedly a part of JDK 1.6? Am I correct with my assumption? Also, to run a JAX-WS based web service, I need to download JAX-WS jars. I found Metro. But on it's page, I see the link of metro to be a sublink of Glassfish. So I'm now confused. Is Glassfish using Metro? Or is Glassfish using Java's JAX-WS?

Are Metro and Java's JAX-WS the same?

解决方案

JAX-WS is an API while Metro is the reference implementation for the JAX-WS API; both are from Sun/Oracle, thus are standard. You can see them as an interface (JAX-WS) and a class implementing the interface (Metro), only at a higher level. Glassfish also uses Metro as implementation for JAX-WS.

To be noted that Metro contains implementation for JAXB and other APIs.

Also, SOAP Web Services are somehow obsolete; the new trend is to use REST Web Services; JAX-RS (with various implementations from the standard Jersey to Restlet or CXF).

这篇关于Metro与Java的JAX-WS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 23:02