Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. # Prova
  2.  
  3. 1. Explique a(s) diferença(s) do uso do JAX-WS e JAX-RS
  4.  
  5. 2. Qual a forma correta de realizar a chamada do método BUSCA (abaixo) através de uma requisição REST passando como parâmetro o ID (1)?
  6.  
  7. ```java
  8. @Path("pessoa")
  9. public class Pessoa {
  10. @GET
  11. @Produces(MediaType.APPLICATION_XML)
  12. public String busca(@QueryParam("id") long id) {
  13. Pessoa pessoa = new PessoaDAO().busca(id); return pessoa.toXML();
  14. }
  15. }
  16. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement