01-29-2014 11:16 PM
I am trying to connect with our BES server pragmatically to get info like users and policies etc. Our enterprise server version is 5.03. I have created client classes as per RIM documentation using CXF 1.6.1 after downloading certificate. I downloaded simple example from RIM site to test the service calls. I am using authtication type "BlackBerry Administration Service".
I am able to make calls with BWSUtil like, getLocale and authentcators etc. But for any call with BWS like getInfo, getusers throws 401: "Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '401: Unauthorized' when communicating with https://EC2AMAZ-E2037Y4.NTTDATAMOBILELAB.COM/enter
am using admin credentials for testing.
I noticed in log encoded user name put 00 at then end like: "8,0,0,1,1,0;besadmin00"
Any idea whats wrong here?
01-30-2014 06:25 AM
A 401 means the credentials did not authenticate properly. Are you using BAS or Active Directory credentials? Have you set up the authenticator in your code respectively?
Do the same credentials work when logging in to the BAS console?