This commit is contained in:
Arjen Poutsma
2007-06-29 13:00:48 +00:00
parent 24766d2be1
commit 4e7a0cfaff

View File

@@ -16,6 +16,7 @@
package org.springframework.ws.transport.http;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
@@ -89,7 +90,12 @@ public class HttpServletConnection extends AbstractReceiverConnection
}
protected InputStream getRequestInputStream() throws IOException {
return getHttpServletRequest().getInputStream();
return new FilterInputStream(getHttpServletRequest().getInputStream()) {
public void close() throws IOException {
// defer close, some SAAJ implementations (Axis 1) lazy-initialize the SOAPMessage
}
};
}
/*