Metro vs Java's JAX-WS?

前端 未结 2 2032
心在旅途
心在旅途 2020-12-25 12:49

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 alr

相关标签:
2条回答
  • 2020-12-25 13:34

    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).

    0 讨论(0)
  • 2020-12-25 13:42

    Accourding to Metro's home page, "Metro consists of JAX-WS Reference Implementation project and Web Services Interoperability Technology project."

    Web Services Interoperability Technologies (WSIT) (previously known as Project Tango) includes implementations of:

    • SOAP over TCP
    • WS-AtomicTransactions/Coordination
    • WS-MetadataExchange
    • WS-Policy (https://github.com/javaee/metro-policy)
    • WS-ReliableMessaging
    • WS-SecureConversation
    • WS-Security
    • WS-SecurityPolicy
    • WS-Trust

    Look at this answer for futher information.

    0 讨论(0)
提交回复
热议问题