From 4cbc75c060239616a34a996d69f258be4ac978f5 Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Fri, 18 Dec 2015 11:27:44 -0600 Subject: [PATCH] SWS-930 Restore backwards compatibility for Axiom 1.2.14- --- .../ws/soap/axiom/AxiomSoapMessageFactory.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-ws-core/src/main/java/org/springframework/ws/soap/axiom/AxiomSoapMessageFactory.java b/spring-ws-core/src/main/java/org/springframework/ws/soap/axiom/AxiomSoapMessageFactory.java index d3e90bd3..76c5da15 100644 --- a/spring-ws-core/src/main/java/org/springframework/ws/soap/axiom/AxiomSoapMessageFactory.java +++ b/spring-ws-core/src/main/java/org/springframework/ws/soap/axiom/AxiomSoapMessageFactory.java @@ -265,16 +265,18 @@ public class AxiomSoapMessageFactory implements SoapMessageFactory, Initializing return contentType.contains(MULTI_PART_RELATED_CONTENT_TYPE); } + @SuppressWarnings("deprecation") /** Creates an AxiomSoapMessage without attachments. */ private AxiomSoapMessage createAxiomSoapMessage(InputStream inputStream, String contentType, String soapAction) throws XMLStreamException { XMLStreamReader reader = inputFactory.createXMLStreamReader(inputStream, getCharSetEncoding(contentType)); String envelopeNamespace = getSoapEnvelopeNamespace(contentType); StAXSOAPModelBuilder builder = new StAXSOAPModelBuilder(reader, soapFactory, envelopeNamespace); - SOAPMessage soapMessage = builder.getSOAPMessage(); + SOAPMessage soapMessage = builder.getSoapMessage(); return new AxiomSoapMessage(soapMessage, soapAction, payloadCaching, langAttributeOnSoap11FaultString); } + @SuppressWarnings("deprecation") /** Creates an AxiomSoapMessage with attachments. */ private AxiomSoapMessage createMultiPartAxiomSoapMessage(InputStream inputStream, String contentType, @@ -297,7 +299,7 @@ public class AxiomSoapMessageFactory implements SoapMessageFactory, Initializing throw new AxiomSoapMessageCreationException( "Unknown attachment type: [" + attachments.getAttachmentSpecType() + "]"); } - return new AxiomSoapMessage(builder.getSOAPMessage(), attachments, soapAction, payloadCaching, + return new AxiomSoapMessage(builder.getSoapMessage(), attachments, soapAction, payloadCaching, langAttributeOnSoap11FaultString); }