Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Web Services

Reply
New Developer
Posts: 3
Registered: ‎01-29-2014
My Device: 9700
My Carrier: at&t

bws sample error

 

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/enterprise/admin/ws"

 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?

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: bws sample error

Hi there,

 

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?

Garett
@garettBeuk
--
Goodbye everybody!
Highlighted
New Developer
Posts: 3
Registered: ‎01-29-2014
My Device: 9700
My Carrier: at&t

Re: bws sample error

Thanks for the response.

 

I am using BAS for authentication. I am able to log BAS console with those credentials.

 

Thanks