Several concepts related to Java Web Service

Source: Internet
Author: User

This time, I switched from. NET to java. Indicates that you are not familiar with java. A newbie must be a newbie. As a newbie, I feel a lot of pressure.
In the development environment, there are several packages, several plug-ins, and several technologies. I have only written HelloWord in the Java console, and I have learned the Basic Java language. It is very challenging...
Let's talk about some column concepts related to Java Web Service today. I am confused by these various new terms in the process of exploration. I cannot find the connection between concepts and want to make a solution choice, which makes me struggle for several days.
In the past, I had some knowledge about. NET webservice, so it is not difficult to understand java webservice.
L JWS: it refers to the J2EE related to webservice (in fact, it should be called Java EE now) technology called JWS (full name is java webservice ). Yes, jws refers to javawebservice.
L technologies contained in Jws
1. JAX-WS
2. JAX-RS
3. JAXB
4. JAXR
5. SAAJ
6. StAX
I don't need to understand many technologies. Besides, for me, I don't need to attack java, at least not at present.
About JAX-WS and JAX-RS
Brief Introduction to JAX-WS and JAX-RS
The JAX-WS is full name of JavaTM API for XML-Based Web Services
JAX-RS: JavaTM API for RESTful Web Services
Jaxb is a java xml binding, and is a tool for converting objects and xml used at the underlying layer of jax-rs jax-ws.
The Internet says this about JAX-WS and JAX-RS: the two are different styles of SOA architecture. The former is centered on verbs and specifies the function to be executed each time. The latter is centered on nouns, and each execution refers to resources.
Feeling that this statement is more reliable, JAX-WS is message-oriented, each request specifies the request method. JAX-RS is resource-oriented. Then, the network is treated as a resource, and each request is to operate on the resource, such as adding, deleting, querying, and modifying the resource.
There are three web service specifications in JAVA: JAXM & SAAJ, JAX-WS (JAX-RPC), and jax-rs. I am not sure whether they can be called the webservice Service Specification. What does this Service Specification mean?
The JAX-WS specification is a set of XML web services JAVA APIs, will this be better understood? What is the relationship between specifications and APIs .... Why is the specification java api? (Forgive me for being so talkative ...)
My understanding is that they only integrate APIs on the java platform, which are used to implement JWS of different styles. People call this API a web Service Specification. Because of their different design goals, the former JWS-WS provides APIs for implementing the Web Service based on the soap protocol, the SOAP protocol is relatively powerful. The latter JWS-RS is an API provided for REST-based design-style WebServcice.
With regard to REST, it is an architecture rather than a standard. At present, I do not have a deep understanding of him.
Then we can combine some frameworks to implement Web services easily (at least for the purpose of the framework.
 
The frameworks supporting JAX-WS service specifications are
: CXF, Axis, Xfile
CXF, Axis2, XFire combined with java language can achieve JAX-WS (I don't understand what this sentence means, why is the implementation of JAX-WS .. It should refer to the soap-based webservice)
The frameworks supporting JAX-RS service specifications are:
CXF -- the combination of XFire and Celtix (an Open-Source ESB sponsored by IONA, originally stored on ObjectWeb ).
Jersey -- Sun's JAX-RS reference implementation.
RESTEasy -- JAX-RS project for JBoss.
Restlet -- maybe it's the oldest REST framework, which had been available before the JAX-RS.

I think, it means that these frameworks combined with JAX-WS can implement RET-style webservice, because JAX-WS doesn't mean API? The above statement is confusing ..
Okay, let's assume that we can implement the soap protocol-style webservice or REST-style Web Service by combining these frameworks with Some APIs provided by the java platform.
I am writing this article for the time being, but I still cannot properly identify the relationship between some of the above column concepts. I hope you can give me some advice, ThankYou !!
Author "HDDevTeam"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.