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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

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?

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?

Goodbye everybody!
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.