File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
spring-ws-core/src/main/java/org/springframework/ws/soap/axiom Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2020import javax .xml .transform .Result ;
2121
2222import org .apache .axiom .om .OMElement ;
23+ import org .apache .axiom .om .OMXMLStreamReaderConfiguration ;
2324import org .apache .axiom .soap .SOAPBody ;
2425import org .apache .axiom .soap .SOAPFactory ;
2526
@@ -38,7 +39,9 @@ class CachingPayload extends AbstractPayload {
3839
3940 @ Override
4041 protected XMLStreamReader getStreamReader (OMElement payloadElement ) {
41- return payloadElement .getXMLStreamReader ();
42+ OMXMLStreamReaderConfiguration config = new OMXMLStreamReaderConfiguration ();
43+ config .setPreserveNamespaceContext (true );
44+ return payloadElement .getXMLStreamReader (true , config );
4245 }
4346
4447 @ Override
You can’t perform that action at this time.
0 commit comments