SWS-931 Upgrade to Axiom 1.2.16
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user