In spring-ws/spring-ws-core/src/main/java/org/springframework/ws/transport/TransportOutputStream.java when close is called if the output stream is already null it will attempt to open a connection just to close it. Recommend adding a null check.
@Override
public void close() throws IOException {
if (outputStream != null) {
getOutputStream().close();
}
}