hello it is a my code there are 2 same requests, but with difference authenticate parameters the 1st user have access, and 2sh have no access on server and the result of my code success for all users
if i will change by places 1st and 2nd request, that the result for all users will denied access i think that there some cache in httpclient or axis2, but i can not find how to disable it i have tried to use clientservice.cleanup() but no effect public static void main(String[] args) throws Exception { { String userName = "user1"; String password = "pass1"; String host = "host"; String domain = "domain; ReportService reportService = new ReportService(userName, password, host, domain); List<CatalogItem> r = reportService.getSubFolders("/"); for (CatalogItem a : r) { System.out.println(a.getName()); } System.out.println("1111111111111111111"); System.out.println(reportService); System.out.println(reportService.rs); System.out.println(reportService.rs._getServiceClient()); } { String userName1 = "user2"; String password1 = "pass2"; String host1 = "host"; String domain1 = "domain"; ReportService reportService1 = new ReportService(userName1, password1, host1, domain1); List<CatalogItem> r = reportService1.getSubFolders("/"); for (CatalogItem a : r) { System.out.println(a.getName()); } } } it is ReportService class public final class ReportService { final ReportingService2005Stub rs; public ReportService(String userName, String password, String host, String domain) throws Exception { rs = new ReportingService2005Stub(); List<String> authSchema = new ArrayList<String>(); authSchema.add(HttpTransportProperties.Authenticator.NTLM); HttpTransportProperties.Authenticator ntlmAuthentication = new HttpTransportProperties.Authenticator(); ntlmAuthentication.setAuthSchemes(authSchema); ntlmAuthentication.setUsername(userName); ntlmAuthentication.setPassword(password); ntlmAuthentication.setHost(host); ntlmAuthentication.setDomain(domain); ntlmAuthentication.setPreemptiveAuthentication(false); Options options = new Options(); options.setProperty(HTTPConstants.CHUNKED, "false"); options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, "false"); options.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, ntlmAuthentication); rs._getServiceClient().setOptions(options); } ................... -- View this message in context: http://old.nabble.com/axis2-client-how-to-disable-cache--tp27772148p27772148.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org