Posted by metalklesk on Sun 24 May 04:40
report abuse | download | new post
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package org.modelo;
- import javax.jws.WebMethod;
- import javax.jws.WebParam;
- import javax.jws.WebService;
- import javax.ejb.Stateless;
- /**
- *
- * @author metalklesk
- */
- @WebService()
- @Stateless()
- public class UsuarioWebService {
- /**
- * Web service getUsuario
- * @param user
- * @param passwd
- * @return
- */
- @WebMethod(operationName = "getUsuario")
- public Usuario getUsuario(@WebParam(name = "user")
- AccesoDatos datos = AccesoDatos.getInstance();
- return datos.getUsuario(user, passwd);
- }
- /**
- * Web service getUsuario
- * @param usuario
- * @return
- */
- @WebMethod(operationName = "setUsuario")
- Usuario usuario) {
- AccesoDatos datos = AccesoDatos.getInstance();
- return datos.setUsuario(usuario);
- }
- }
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.