SSLSocketFactory sf = new SSLSocketFactory(sslSocketFactory.getSSLContext()); sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); Scheme httpsScheme = new Scheme("https", 443, sf); SchemeRegistry schemeRegistry = new SchemeRegistry(); schemeRegistry.register(httpsScheme); PoolingClientConnectionManager conmgr = new PoolingClientConnectionManager(schemeRegistry); conmgr.setMaxTotal(1000); conmgr.setDefaultMaxPerRoute(200); DefaultHttpClient client = new DefaultHttpClient(conmgr); HttpTransportPropertiesImpl.Authenticator auth = new HttpTransportPropertiesImpl.Authenticator(); auth.setPreemptiveAuthentication(true); auth.setUsername(Username); auth.setPassword(Password); stub = new VPAppIntfServiceStub(webserviceCall); Options options = stub._getServiceClient().getOptions(); options.setProperty(HTTPConstants.CHUNKED, "true"); options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, "true"); options.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, client); options.setProperty(HTTPConstants.AUTHENTICATE,auth); TransportOutDescription transportOut = new TransportOutDescription("https"); HTTPClient4TransportSender sender = new HTTPClient4TransportSender(); sender.init(stub._getServiceClient().getServiceContext().getConfigurationContext(), transportOut); transportOut.setSender(sender); options.setTransportOut(transportOut); stub._getServiceClient().setOptions(options);