AnsweredAssumed Answered

changePassword error

Question asked by grosisimo on Dec 26, 2007
Latest reply on Dec 27, 2007 by grosisimo
Hi

I need to change a user password via web services, so I was trying to use the method changePassword in the class AdministrationServiceSoapBindingStub.
I don't know the old password, so I fill the second parameter with null as I read in the documentation, but I get "Non nillable element 'message1' is null.".

The main part of the source code is

AuthenticationUtils.startSession("admin", "admin");
AdministrationServiceSoapBindingStub admin = WebServiceFactory.getAdministrationService();
admin.changePassword(username, [b]null[/b], newpassword);
AuthenticationUtils.endSession();

When I fill the second parameter with the right old password, it works.
Thanks

Outcomes