Quantcast
Channel: SCN : Discussion List - SAP NetWeaver Development Infrastructure (NWDI)
Viewing all articles
Browse latest Browse all 695

Exception in Webservice method.

$
0
0

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.



Viewing all articles
Browse latest Browse all 695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>