why WSPasswordCallback.getPassword is null when I try my soap request

2013-05-09 Thread Tania Marinova
i        I have made axis 2 web service with rampart security but I constantly was receiving null point exception at this line if((pwcb.getIdentifier().equals("bob")) && pwcb.getPassword().equals("bobPW")) ) so when I wrote this code if ( pwcb.getPassword()==null) { throw new

Re: why WSPasswordCallback.getPassword is null when I try my soap request

2013-05-09 Thread robert lazarski
On Thu, May 9, 2013 at 6:08 AM, Tania Marinova wrote: > > i > > I have made axis 2 web service with rampart security > but I constantly was receiving null point exception at this line > > if((pwcb.getIdentifier().equals("bob")) && > pwcb.getPassword().equals("bobPW")) ) > > so when I wrote th

Re: why WSPasswordCallback.getPassword is null when I try my soap request

2013-05-09 Thread robert lazarski
On Thu, May 9, 2013 at 8:36 AM, Tania Marinova wrote: > > Thank you for the help robert but I really think there is something wrong > here and I can't find no documentation and nobody can answer me! That's why you need to run the code I asked you to - I need the debug info to find the problem in

Re: why WSPasswordCallback.getPassword is null when I try my soap request

2013-05-09 Thread Tania Marinova
I tried your code (insted of System.out.println I throw an exception ) public void handle(Callback[] callbacks)   throws IOException,  UnsupportedCallbackException   {             for (int i = 0; i < callbacks.length; i++) {                           WSPa

Re: why WSPasswordCallback.getPassword is null when I try my soap request

2013-05-09 Thread robert lazarski
On Thu, May 9, 2013 at 12:05 PM, Tania Marinova wrote: > I tried your code (insted of System.out.println I throw an exception ) > > > > > public void handle(Callback[] callbacks) throws IOException, > UnsupportedCallbackException > { > > for (int i = 0; i < callbacks.length; i++)