ClientConfigurationFactory factory = new ClientConfigurationFactory(
configurator);
MetadataFactoryRegistry.setFactory(ClientConfigurationFactory.class,
factory);
AsyncPort port = getPort();
Map<String, Object> rc = ((BindingProvider) port).getRequestContext();
rc.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
DOCLITWR_ASYNC_ENDPOINT);
//rc.put(AddressingConstants.WSA_REPLY_TO, AddressingConstants.Final.WSA_ANONYMOUS_URL);
rc.put("org.apache.axis2.jaxws.use.async.mep", Boolean.TRUE);
CallbackHandler<ThrowExceptionResponse> handler = new CallbackHandler<ThrowExceptionResponse>();
Future<?> resp = port.throwExceptionAsync(ExceptionTypeEnum.WSE,
handler);
AsyncClient.waitBlocking(resp);
Exception e = null;
try {