return close;
}
private boolean processInOut(MessageExchange exchange, PostMethod method, Context context, boolean txSync,
boolean close) throws Exception {
NormalizedMessage msg = exchange.createMessage();
SoapReader reader = soapHelper.getSoapMarshaler().createReader();
Header contentType = method.getResponseHeader(HEADER_CONTENT_TYPE);
SoapMessage soapMessage = reader.read(method.getResponseBodyAsStream(), contentType != null ? contentType.getValue() : null);
context.setOutMessage(soapMessage);
soapHelper.onAnswer(context);
if (getConfiguration().isWantHeadersFromHttpIntoExchange()) {
msg.setProperty(JbiConstants.PROTOCOL_HEADERS, getHeaders(method));
}
soapHelper.getJBIMarshaler().toNMS(msg, soapMessage);
((InOut) exchange).setOutMessage(msg);
if (txSync) {
channel.sendSync(exchange);