03-29-2011 11:21 AM - edited 03-29-2011 11:27 AM
03-31-2011 10:11 AM
Are you using BAS or AD credentils? Have you set up your code to authenticate properly against these credntials?
Please include the snippet of code being used for authentication in your reply.
03-31-2011 10:34 AM
I'm using BAS credentials. Here is the snipet of code:
String username=System.getProperty("username");
String password=System.getProperty("password");
//call encodeUsername
String myEncodeUsername=_myUtilWSStub.encodeUsername(user
//set http basic authentication on web service
BindingProvider bp = (BindingProvider)_myCoreWSStub;
bp.getRequestContext().put(BindingProvider.USERNAM
bp.getRequestContext().put(BindingProvider.PASSWOR
String username=System.getProperty("username");
String password=System.getProperty("password");
//call encodeUsername
String myEncodeUsername=_myUtilWSStub.encodeUsername(user
//set http basic authentication on web service
BindingProvider bp = (BindingProvider)_myCoreWSStub;
bp.getRequestContext().put(BindingProvider.USERNAM
bp.getRequestContext().put(BindingProvider.PASSWOR
I have also attached the file for reference.
Thanks
03-31-2011 12:22 PM
Forgot to attach the file.
03-31-2011 02:22 PM - edited 03-31-2011 02:22 PM
What are the values of your username and myEncodeUsername? Are you able to log in to the BAS console using the same username and password? If so, can you successfully search for users with this account?
03-31-2011 03:02 PM
Say my username is BAdmin, encodeUsername is "8,0,0,1,1,0;BAdmin00"
I can log into BAS console and search for users.
Thanks for the quick responses.
03-31-2011 03:57 PM
Just found out my problem - The admin user i was using had an authentication type of Active Directory and I was trying to use BAS instead. Fixed it
. Thanks for all the help.