Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Turn on the AutoRedirect and turn off the Chunking for the Conduit. This will allow CXF to cache the response in a manner that will allow the transport to keep resending the request during the authentication negotiation.
  • Force the use of the Async transport even for synchronous calls

    Code Block
    java
    java
    bp.getRequestContext().put("use.async.http.conduit", Boolean.TRUE); 
    

    or using AsyncHTTPConduit.USE_ASYNC constant

    Code Block
    java
    java
    bp.getRequestContext().put(AsyncHTTPConduit.USE_ASYNC, Boolean.TRUE);  


  • Set the property "org.apache.http.auth.Credentials" to an instance of the Credentials. For example:

    Code Block
    java
    java
    Credentials creds = new NTCredentials("username", "pswd", null, "domain");
    bp.getRequestContext().put(Credentials.class.getName(), creds);
    


...