This is an automated email from the ASF dual-hosted git repository.

veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-axiom.git


The following commit(s) were added to refs/heads/master by this push:
     new 25bae4144 Refactor MTOMStAXSOAPModelBuilder to not use the legacy XOP 
decoder
25bae4144 is described below

commit 25bae41447f8602faa7cd950fd9c16119f6ae269
Author: Andreas Veithen <andreas.veit...@gmail.com>
AuthorDate: Tue Nov 1 01:05:07 2022 +0000

    Refactor MTOMStAXSOAPModelBuilder to not use the legacy XOP decoder
    
    MTOMStAXSOAPModelBuilder is still needed to ensure compatibility with
    Spring-WS, but this change will allow us to delete the legacy XOP
    decoder.
---
 .../apache/axiom/soap/impl/builder/MTOMStAXSOAPModelBuilder.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/axiom-compat/src/main/java/org/apache/axiom/soap/impl/builder/MTOMStAXSOAPModelBuilder.java
 
b/axiom-compat/src/main/java/org/apache/axiom/soap/impl/builder/MTOMStAXSOAPModelBuilder.java
index 917096f19..f3a9dea9b 100644
--- 
a/axiom-compat/src/main/java/org/apache/axiom/soap/impl/builder/MTOMStAXSOAPModelBuilder.java
+++ 
b/axiom-compat/src/main/java/org/apache/axiom/soap/impl/builder/MTOMStAXSOAPModelBuilder.java
@@ -19,18 +19,18 @@
 package org.apache.axiom.soap.impl.builder;
 
 import javax.xml.stream.XMLStreamReader;
+import javax.xml.transform.stax.StAXSource;
 
 import org.apache.axiom.attachments.Attachments;
+import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMXMLBuilderFactory;
-import org.apache.axiom.om.impl.builder.AttachmentsMimePartProvider;
-import org.apache.axiom.util.stax.xop.XOPDecodingStreamReader;
 
 /**
  * @deprecated Please use the {@link OMXMLBuilderFactory} API to create 
builders.
  */
 public class MTOMStAXSOAPModelBuilder extends StAXSOAPModelBuilder {
     public MTOMStAXSOAPModelBuilder(XMLStreamReader reader, Attachments 
attachments, String soapVersion) {
-        super(OMXMLBuilderFactory.createStAXSOAPModelBuilder(new 
XOPDecodingStreamReader(reader, new AttachmentsMimePartProvider(attachments))));
+        
super(OMXMLBuilderFactory.createSOAPModelBuilder(OMAbstractFactory.getMetaFactory(),
 new StAXSource(reader), attachments));
         validateSOAPVersion(null, soapVersion);
     }
 }

Reply via email to