Author: darran.lofthouse(a)jboss.com
Date: 2009-02-09 07:33:57 -0500 (Mon, 09 Feb 2009)
New Revision: 9267
Modified:
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java
Log:
Merge revision 8362
Modified:
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java 2009-02-09
12:31:12 UTC (rev 9266)
+++
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java 2009-02-09
12:33:57 UTC (rev 9267)
@@ -21,8 +21,8 @@
*/
package org.jboss.ws.core.jaxws.handler;
-// $Id: MessageContextImpl.java 275 2006-05-04 21:36:29Z jason.greene(a)jboss.com $
-
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.net.URL;
@@ -37,6 +37,7 @@
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.OperationMetaData;
import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import org.jboss.wsf.common.IOUtils;
import org.jboss.xb.binding.NamespaceRegistry;
import org.xml.sax.InputSource;
@@ -135,7 +136,9 @@
{
try
{
- InputSource inputSource = new InputSource(wsdlURL.openStream());
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ IOUtils.copyStream(baos, wsdlURL.openStream()); // [JBWS-2325] ensure file
descriptors are closed
+ InputSource inputSource = new InputSource(new
ByteArrayInputStream(baos.toByteArray()));
put(MessageContext.WSDL_DESCRIPTION, inputSource);
}
catch (IOException ex)
Show replies by date