Hi,

I think this can be concurrency issue. 
Try to activate thread local setting in request context: 
((BindingProvider)proxy).getRequestContext().put("thread.local.request.context",
 "true");
or create new client proxy per thread (according to the JAX-WS spec, the client 
proxies are NOT thread safe).

Refer CXF FAQ for details: 
http://cxf.apache.org/faq.html#FAQ-AreJAX-WSclientproxiesthreadsafe? 

Regards,
Andrei.

> -----Original Message-----
> From: patch_78 [mailto:patch...@hotmail.com]
> Sent: Samstag, 30. August 2014 09:51
> To: users@cxf.apache.org
> Subject: RE: Two wsse:UsernameToken in a request with different
> wsse:Username
> 
> Hi,
> 
> Yes. My client is a web application. The initUserManagementPort() is a method
> of a SESSION object which is created for each user login to the web 
> application.
> It seems the <wsse:UsernameToken> of the FIRST login user is cached somehow
> and is always sent to the web service provider.
> 
> Do you have any ideas how I can fix this?
> 
> Patcharee
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Two-wsse-
> UsernameToken-in-a-request-with-different-wsse-Username-
> tp5748229p5748310.html
> Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to