Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Exception in Webservice method.

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.


Former Member
Not what you were looking for? View more on this topic or Ask a question