conn.init();
if (conn.hasError()) {
throw new WsTransportException(conn.getErrorMessage());
}
logger.debug("Starting receive message");
context.invokeBodyReader(conn.getReader());
if (context.getBody() == null) {
throw new WsException("No handlers could be found for unmarshalling the body payload");
}
logger.debug("Message received");
} finally {