[Wise] New message: "Re: Wise with JBoss Seam"
by Zoul AKHDAR
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
14 years, 10 months
[Wise] New message: "Wise with JBoss Seam"
by Zoul AKHDAR
Wise Users,
A new message was posted in the thread "Wise with JBoss Seam":
http://community.jboss.org/message/522995#522995
Author : Zoul AKHDAR
Profile : http://community.jboss.org/people/zakhdar
Message:
--------------------------------------------------------------
Hi all , I try to use wise-core in JBoss Seam application , the authentication method in seam need to consume a WS via wise-core.
the server start correctly , but when my seam ap consume my WS i have an exception.
My WS and Seam ap are deployed in the same server.
my configuration :
- Windows xp SP2
- JBoss AS 5.1.0.GA
- JDK 6
-JBoss Developper Studio
- i have in my %JBOSS_HOME%\lib\endorsed : activation.jar , jaxb-api.jar , jaxb-impl.jar , jaxb-xjc.jar , jbossws-native-jaxrpc.jar ,jbossws-native-jaxws.jar , jbossws-native-jaxws-ext.jar , jbossws-native-saaj.jar , resolver.jar , serializer.jar , stax-api.jar , xalan.jar , xercesImpl.jar
- i have also in my classpath tools.jar from jdk-XXX\lib to allow wise-core to compile the classes
My WS code
:
import javax.ejb.EJB;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import ci.prosuma.prosumaauthenticationmodule.dao.ldap.IUserLdapLDAP;
import ci.prosuma.prosumaauthenticationmodule.dao.ldap.entity.User;
import ci.prosuma.prosumaauthenticationmodule.service.IWSLDAPService;
@Stateless
@Remote(IWSLDAPService.class)
@WebService
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class WSLDAPServiceBean implements IWSLDAPService {
@EJB
private IUserLdapLDAP userLDAP;
@WebMethod
public User findUserByLogin(@WebParam(name="login") String login) {
return userLDAP.findByLogin(login);
}
}
Interface I
import ci.prosuma.prosumaauthenticationmodule.dao.ldap.entity.User;
public interface IWSLDAPService {
public User findUserByLogin(String login);
}
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522995#522995
14 years, 10 months