THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
To force global use of the HTTP Components transport, you can set a bus-level property:
Code Block | ||
---|---|---|
| ||
Bus bus = BusFactory.getDefaultBus(); |
...
// insist on the async connector to use PATCH. |
...
bus.setProperty(AsyncHTTPConduit.USE_ASYNC, Boolean.TRUE); |
Setting Credentials
The "normal" CXF/JAX-WS method of setting user credentials via the BindingProvider.USERNAME_PROPERTY/PASSWORD_PROPERTY will work with the Async transport as well. However, the HttpAsyncClient library does have some additional capabilities around NTLM that can be leveraged. In order to use that, you need to:
...