您好我遇到了一些问题,我无法从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。
是不可能的?我怎么能这样做?
答案 0 :(得分:2)
我建议你: