You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by da...@apache.org on 2006/12/31 22:14:05 UTC
svn commit: r491491 -
/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/swa/SwAServiceImpl.java
Author: dandiep
Date: Sun Dec 31 13:14:05 2006
New Revision: 491491
URL: http://svn.apache.org/viewvc?view=rev&rev=491491
Log:
Fix compilation problem. Didn't show up in my local build as eclipse went ahead and compiled it anyway and the method isn't called...
Modified:
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/swa/SwAServiceImpl.java
Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/swa/SwAServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/swa/SwAServiceImpl.java?view=diff&rev=491491&r1=491490&r2=491491
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/swa/SwAServiceImpl.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/swa/SwAServiceImpl.java Sun Dec 31 13:14:05 2006
@@ -18,14 +18,10 @@
*/
package org.apache.cxf.systest.swa;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-
import javax.activation.DataHandler;
import javax.jws.WebService;
+import javax.xml.ws.Holder;
-import org.apache.cxf.helpers.IOUtils;
import org.apache.cxf.swa.SwAServiceInterface;
import org.apache.cxf.swa.types.DataStruct;
@@ -35,18 +31,7 @@
portName = "SwAServiceHttpPort")
public class SwAServiceImpl implements SwAServiceInterface {
- public void echoData(DataStruct struct, DataHandler data) {
- ByteArrayOutputStream bos = new ByteArrayOutputStream();
- try {
- InputStream is = data.getInputStream();
- IOUtils.copy(is, bos);
- is.close();
- bos.close();
-
- System.out.println("OUTPUT: " + bos.toString());
- } catch (IOException e) {
- e.printStackTrace();
- }
+ public void echoData(Holder<DataStruct> text, Holder<DataHandler> data) {
}