diff --git a/spring-integration-ws/src/main/java/org/springframework/integration/ws/config/WebServiceInboundGatewayParser.java b/spring-integration-ws/src/main/java/org/springframework/integration/ws/config/WebServiceInboundGatewayParser.java index f292bb9d96..79cff563f9 100644 --- a/spring-integration-ws/src/main/java/org/springframework/integration/ws/config/WebServiceInboundGatewayParser.java +++ b/spring-integration-ws/src/main/java/org/springframework/integration/ws/config/WebServiceInboundGatewayParser.java @@ -56,17 +56,16 @@ public class WebServiceInboundGatewayParser extends AbstractInboundGatewayParser } else { // check if unmarshaller is defined which is a mistake without marshaller if (StringUtils.hasText(unmarshallerRef)){ - throw new IllegalArgumentException("Defining 'unmarshaller' without 'marshaller' is not allowed"); + throw new IllegalArgumentException("An 'unmarshaller' is not allowed without 'marshaller'."); } } if (StringUtils.hasText(marshallerRef) || StringUtils.hasText(unmarshallerRef)){ String extractPayload = element.getAttribute("extract-payload"); - if (StringUtils.hasText(extractPayload)){ - logger.warn("Setting 'extract-payload' attribute ihas no effect when used with MarshallingWebServiceInboundGateway"); + if (StringUtils.hasText(extractPayload)) { + logger.warn("Setting 'extract-payload' attribute has no effect when used with a marshalling Web Service Inbound Gateway."); } } - String headerMapperRef = element.getAttribute("header-mapper"); if (StringUtils.hasText(headerMapperRef)) { Assert.isTrue(!StringUtils.hasText(marshallerRef),