From ee8748b9563cbe3ef699181176cb842dc45b6d55 Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Fri, 18 Dec 2015 12:18:25 -0600 Subject: [PATCH] SWS-931 Upgrade to Axiom 1.2.16 --- build.gradle | 2 +- .../org/springframework/ws/soap/axiom/support/AxiomUtils.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index e0256617..e0adfb67 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ configure(allprojects) { ext.springVersion = "4.0.9.RELEASE" ext.springSecurityVersion = "3.2.9.RELEASE" - ext.axiomVersion = "1.2.15" + ext.axiomVersion = "1.2.16" ext.smackVersion = "4.1.6" apply plugin: "java" diff --git a/spring-ws-core/src/main/java/org/springframework/ws/soap/axiom/support/AxiomUtils.java b/spring-ws-core/src/main/java/org/springframework/ws/soap/axiom/support/AxiomUtils.java index d880658a..76153e80 100644 --- a/spring-ws-core/src/main/java/org/springframework/ws/soap/axiom/support/AxiomUtils.java +++ b/spring-ws-core/src/main/java/org/springframework/ws/soap/axiom/support/AxiomUtils.java @@ -115,7 +115,6 @@ public abstract class AxiomUtils { * @param envelope the SOAP envelope to be converted * @return the converted document * @throws IllegalArgumentException in case of errors - * @see org.apache.rampart.util.Axis2Util#getDocumentFromSOAPEnvelope(SOAPEnvelope, boolean) */ public static Document toDocument(SOAPEnvelope envelope) { try { @@ -144,7 +143,6 @@ public abstract class AxiomUtils { * @param document the document to be converted * @return the converted envelope * @throws IllegalArgumentException in case of errors - * @see org.apache.rampart.util.Axis2Util#getSOAPEnvelopeFromDOMDocument(Document, boolean) */ public static SOAPEnvelope toEnvelope(Document document) { try { @@ -163,6 +161,7 @@ public abstract class AxiomUtils { XMLInputFactory inputFactory = StAXUtils.getXMLInputFactory(); + @SuppressWarnings("deprecation") StAXSOAPModelBuilder stAXSOAPModelBuilder = new StAXSOAPModelBuilder(inputFactory.createXMLStreamReader(bis), null); SOAPEnvelope envelope = stAXSOAPModelBuilder.getSOAPEnvelope();