binding.getBindingImpl().updateMessageContext(replyBindingCtx);
try {
OutputStreamMessageContext ostreamCtx = st.createOutputStreamContext(replyBindingCtx);
ostreamCtx.setOneWay(isOneway());
if (isOneway()) {
st.finalPrepareOutputStreamContext(ostreamCtx);
} else {
if (binding.getBindingImpl().hasFault(replyBindingCtx)) {
ostreamCtx.setFault(true);
}
handlerInvoker.invokeStreamHandlers(ostreamCtx);
st.finalPrepareOutputStreamContext(ostreamCtx);
binding.getBindingImpl().write(replyBindingCtx, ostreamCtx);
OutputStream os = ostreamCtx.getOutputStream();
os.flush();
}
LOG.fine("postDispatch from binding on thread : " + Thread.currentThread());
st.postDispatch(replyBindingCtx, ostreamCtx);
if (ostreamCtx.getOutputStream() != null) {
ostreamCtx.getOutputStream().close();
}
} catch (IOException ex) {
LOG.log(Level.SEVERE, "RESPONSE_UNWRITABLE_MSG", ex);
throw new WebServiceException(ex);
} finally {