Skip to content

Commit 4e7a0cf

Browse files
committed
SWS-150
1 parent 24766d2 commit 4e7a0cf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/src/main/java/org/springframework/ws/transport/http/HttpServletConnection.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.ws.transport.http;
1818

19+
import java.io.FilterInputStream;
1920
import java.io.IOException;
2021
import java.io.InputStream;
2122
import java.io.OutputStream;
@@ -89,7 +90,12 @@ protected Iterator getRequestHeaders(String name) throws IOException {
8990
}
9091

9192
protected InputStream getRequestInputStream() throws IOException {
92-
return getHttpServletRequest().getInputStream();
93+
return new FilterInputStream(getHttpServletRequest().getInputStream()) {
94+
95+
public void close() throws IOException {
96+
// defer close, some SAAJ implementations (Axis 1) lazy-initialize the SOAPMessage
97+
}
98+
};
9399
}
94100

95101
/*

0 commit comments

Comments
 (0)