}
return headers;
}
protected RequestEntity writeMessage(SoapWriter writer) throws Exception {
HttpLifeCycle lf = (HttpLifeCycle) endpoint.getServiceUnit().getComponent().getLifeCycle();
if (lf.getConfiguration().isStreamingEnabled()) {
return new StreamingRequestEntity(writer);
} else {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
writer.write(baos);
return new ByteArrayRequestEntity(baos.toByteArray(), writer.getContentType());