2 types webserives
1, Soap->JAX-WS( which is a specification for XML Web Service grouped of JAVA API )
2, Restful-->JAX-RS( Java API for RESTful Web Services, introduced from JAVA EE6)
difference:
Soap has to use the WSDL(WebService describe language) while Restful doesn't need to.