您好,我遇到了一些问题,我无法从Java调用webservice并将结果发送到flex端。
过程
负责ldap ws调用的类在自定义jar中(Maven依赖项)
public User checkUserCredetialFromLdap(String identifiant, String password) throws EmmBusinessException, LdapServiceException{
User myUser = null;
User myCompleteUser = null;
//initialization of webservice with the endpoint URL failed
Axis1LdapWsAuth ws = new Axis1LdapWsAuth(Config.getProperties().getProperty("endpoint.url"));
try{
//authentication using webservice
String csif_sessionID =ws.login(identifiant, password);
....
}
}catch(LdapServiceException lse)
{
EmmBusinessException emmB = new EmmBusinessException(lse,this,"","Unable to get User",Level.WARNING);
log(emmB);
throw (emmB);
}
catch (Exception t) {
EmmBusinessException emmB = new EmmBusinessException(t,this,"","Unable to get User",Level.WARNING);
log(emmB);
throw (emmB);
} finally {
finish();
}
return myCompleteUser;
}
我知道可以使用RPC在Flex端调用webservice,但是我不想这样做,但是由于某些原因,我需要从Java端调用webservice。
不可能吗?我怎样才能做到这一点 ?
我建议您:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句