Hi,
I need to connect to UME API through a WebService and authenticate the user.
I created a EJB module and exposed it as a Webservice.
The code i have written in Bean class is as follows:
static IUserFactory userFactory;
static IPrincipalFactory principalFactory;
public boolean Test(String s1)throws Exception
{
IUserFactory userFactory = UMFactory.getUserFactory();
IUserSearchFilter filter = userFactory.getUserSearchFilter();
ISearchResult searchResult = principalFactory.simplePrincipalSearch(
s1,
IPrincipalFactory.IUSER,
ISearchAttribute.EQUALS_OPERATOR,
false,
null);
if (searchResult.getState() == ISearchResult.SEARCH_RESULT_OK) {
return true;
} else {
return false;
}
and when i test it i get follwing msg.
An error has occurred. Maybe the request is not accepted by the server:
Exception in method Test.
Please help.