Wise Users,
A new message was posted in the thread "Wise with JBoss Seam":
http://community.jboss.org/message/523015#523015
Author : Zoul AKHDAR
Profile :
http://community.jboss.org/people/zakhdar
Message:
--------------------------------------------------------------
I have modified my WS and it's works fine now
Here my code :
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.jws.WebService;
import ci.prosuma.prosumaauthenticationmodule.dao.ldap.IUserLdapLDAP;
import ci.prosuma.prosumaauthenticationmodule.dao.ldap.entity.User;
import ci.prosuma.prosumaauthenticationmodule.service.IWSLDAPService;
@Stateless
@WebService(endpointInterface =
"ci.prosuma.prosumaauthenticationmodule.service.IWSLDAPService")
public class WSLDAPServiceBean implements IWSLDAPService {
@EJB
private IUserLdapLDAP userLDAP;
public User connectByIdAndPassword( String name, String password) {
return userLDAP.connectByIdAndPassword(name, password);
}
public User[] findAllUsers( String firstName,String lastName, int maxResult) {
return userLDAP.findAllUsers(firstName, lastName, maxResult);
}
public User findUserByLogin( String login) {
return userLDAP.findByLogin(login);
}
}
my interface :
import javax.ejb.Remote;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import ci.prosuma.prosumaauthenticationmodule.dao.ldap.entity.User;
@Remote
@WebService(name = "WSLDAPService")
@SOAPBinding(style= SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL,
parameterStyle= SOAPBinding.ParameterStyle.WRAPPED)
public interface IWSLDAPService {
@WebMethod
public User connectByIdAndPassword(@WebParam(name="name") String
name,@WebParam(name="password") String password);
@WebMethod
public User[] findAllUsers(@WebParam(name="firstName") String
firstName,@WebParam(name="lastName") String
lastName,@WebParam(name="maxResult") int maxResult);
@WebMethod
public User findUserByLogin(@WebParam(name="login") String login);
}
--------------------------------------------------------------
To reply to this message visit the message page:
http://community.jboss.org/message/523015#523015