I have been wracking my brain for days now trying to figure out why impersonateUser does not work for me using les-service (I can get it to work just fine if using cws). To try and figure it out, I modified login() in the lltreeview example with the following snippet, that does not work. Help! J
String fcwsauthURL = "http://localhost/les-services/Authentication.svc";
URL authURL = new URL( fcwsauthURL );
authClient = WebServiceUtil.getAuthenticationService( authURL );
Node PWS = null;
PWS = fDocMant.getRootNode( "PersonalWS" );
System.out.println("PWS before impersonate: " + PWS.getName());
authClient.impersonateUser("testuser1");
System.out.println("after impersonate");
WebServiceUtil.setSoapHeader( ( WSBindingProvider ) authClient, fOTAuth );
WebServiceUtil.setSoapHeader( ( WSBindingProvider ) fDocMan, fOTAuth );
PWS = fDocMan.getRootNode( "PersonalWS" );
System.out.println("PWS after impersonate: " + PWS.getName());
Thanks!
Kevin