Skip to content

Commit

Permalink
Fix import for SOAP11Factory in DeferredMessageBuilder
Browse files Browse the repository at this point in the history
Resolves wso2/product-micro-integrator#3117
When org.apache.axiom.soap.impl.dom.soap11.SOAP11Factory is used, the Envelope type is different from other normal usecases.
  • Loading branch information
arunans23 committed Feb 20, 2024
1 parent 43a8113 commit 538513c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import org.apache.axiom.om.OMElement;
import org.apache.axiom.soap.SOAPEnvelope;
import org.apache.axiom.soap.impl.dom.soap11.SOAP11Factory;
import org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory;
import org.apache.axis2.AxisFault;
import org.apache.axis2.Constants;
import org.apache.axis2.builder.*;
Expand Down Expand Up @@ -143,7 +143,7 @@ public OMElement getDocument(MessageContext msgCtx, InputStream in) throws
if (builder != null) {
try {
if (contentLength != null && "0".equals(contentLength) && !msgCtx.isDoingREST()) {
element = new org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory().getDefaultEnvelope();
element = new SOAP11Factory().getDefaultEnvelope();
//since we are setting an empty envelop to achieve the empty body, we have to set a different
//content-type other than text/xml, application/soap+xml or any other content-type which will
//invoke the soap builder, otherwise soap builder will get hit and an empty envelope
Expand Down

0 comments on commit 538513c

Please sign in to comment.