Skip to content

Instantly share code, notes, and snippets.

@guimello
Created June 10, 2010 04:42
Show Gist options
  • Save guimello/432560 to your computer and use it in GitHub Desktop.
Save guimello/432560 to your computer and use it in GitHub Desktop.
Java WebService example
@WebService()
public class CadastrarPessoa
{
@WebMethod(operationName = "cadastrarPessoa")
public boolean cadastrarPessoa(@WebParam(name = "pessoa") Pessoa pessoa)
{
return false;
}
@WebMethod(operationName = "editarPessoa")
public boolean editarPessoa(@WebParam(name = "pessoa") Pessoa pessoa)
{
return false;
}
@WebMethod(operationName = "excluirPessoa")
public boolean excluirPessoa(@WebParam(name = "pessoa") Pessoa pessoa)
{
return false;
}
@WebMethod(operationName = "getPessoa")
public Pessoa getPessoa(@WebParam(name = "idPessoa") Pessoa idPessoa);
{
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment