RE: multiple WS calls to the same URL as different user from same VM

2013-11-25 Thread Samo Dadela
Hi Andrei, JIRA issue with sample project: https://issues.apache.org/jira/browse/CXF-5419 Regards, Samo

RE: multiple WS calls to the same URL as different user from same VM

2013-11-19 Thread Samo Dadela
Hi Andrei, > I think the conduit settings are not thread safe even if you use > ((BindingProvider)port).getRequestContext().put("thread.local.request.context", > "true"). > See http://cxf.apache.org/faq.html#FAQ-AreJAXWSclientproxiesthreadsafe%3F for > details. > Could you try to create client

RE: multiple WS calls to the same URL as different user from same VM

2013-11-15 Thread Samo Dadela
Hi, This is the latest code. NTLM now works, but I'm getting "Authorization loop detected on Conduit" once and "Buffer already closed for writing" every now and then... It seems something is not thread-safe. I'm also not sure if I'm using a single conduit or is it being shared. This code is r

Split authentication and call / use own HTTP transport

2013-11-15 Thread Samo Dadela
Hi, Because of the problems (and lack of any documentation) I'm facing with authentication under different users in different threads for the same WS I would like to know if it is possible to split the authentication process and the actual (JAXWS) call. For example: 1. do the authentication

RE: multiple WS calls to the same URL as different user from same VM

2013-11-14 Thread Samo Dadela
d.local.request.context", > "true") > ... > Credentials creds = new NTCredentials("username", "pswd", null, "domain"); > bp.getRequestContext().put(Credentials.class.getName(), creds); > // make client proxy call > > If it does

RE: multiple WS calls to the same URL as different user from same VM

2013-11-11 Thread Samo Dadela
Hi, I did not try HttpAsyncClient but just the normal HttpClient NTCredentials. Does this matter? I'm still getting 401 Unauthorized. I even tried to turn off chunking... The code: URL wsdlURL = new URL(getInstance().getClass().getClassLoader().getResource("wsdl/Lists.wsdl"

multiple WS calls to the same URL as different user from same VM

2013-11-08 Thread Samo Dadela
Hi, Searched long and wide but can't find anything on the issue... Using JDK 6. I've generated a JAX-WS client proxy using wsdl2java using Lists.wdsl (SharePoint). I can authenticate via NTLM without problem by passing the credentials via java.net.Auhtenticator (setDefault)... What I want to