Tuesday, 15 March 2011

soap - Durability of CXF configurations performed using HttpConduit and HttpClientPolicy -



soap - Durability of CXF configurations performed using HttpConduit and HttpClientPolicy -

i'm configuring cxf using httpconduit , httpclientpolicy. right every request sees next customisations:

client client = clientproxy.getclient(queryservice); client.getrequestcontext().put(message.endpoint_address, server); httpconduit conduit = (httpconduit) client.getconduit(); httpclientpolicy policy = new httpclientpolicy(); policy.setconnectiontimeout(timeout * 1000); policy.setreceivetimeout(timeout * 1000); if (authentication_type_ntlm.equals(authenticationtype)) policy.setallowchunking(false); if (authenticationcookie != null) policy.setcookie(authenticationcookie.tostring()); conduit.setclient(policy);

are these customisations can applied once, when queryservice instance created? if case, how can set authentication cookie independently each request?

soap jax-ws cxf

No comments:

Post a Comment