geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r554771 - /geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/Axis2WebServiceContainerTest.java
Date Mon, 09 Jul 2007 22:01:07 GMT
Author: gawor
Date: Mon Jul  9 15:01:07 2007
New Revision: 554771

URL: http://svn.apache.org/viewvc?view=rev&rev=554771
Log:
remove dependency on ant class

Modified:
    geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/Axis2WebServiceContainerTest.java

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/Axis2WebServiceContainerTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/Axis2WebServiceContainerTest.java?view=diff&rev=554771&r1=554770&r2=554771
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/Axis2WebServiceContainerTest.java
(original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/test/java/org/apache/geronimo/axis2/Axis2WebServiceContainerTest.java
Mon Jul  9 15:01:07 2007
@@ -16,6 +16,7 @@
  */
 package org.apache.geronimo.axis2;
 
+import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.File;
 import java.io.IOException;
@@ -29,7 +30,6 @@
 import org.apache.geronimo.jaxws.PortInfo;
 import org.apache.geronimo.kernel.util.XmlUtil;
 import org.apache.geronimo.webservices.WebServiceContainer.Request;
-import org.apache.tools.ant.filters.StringInputStream;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 import org.w3c.dom.NamedNodeMap;
@@ -90,7 +90,7 @@
         Element root = doc.getDocumentElement();
         NodeList nodeList = root.getElementsByTagName("soap:Envelope");
         
-        StringInputStream request;
+        InputStream request;
         
         for(int i = 0; i < nodeList.getLength(); i++){
         	StringBuffer envelope = new StringBuffer("<soap:Envelope");
@@ -125,7 +125,7 @@
         	
             System.out.println(envelope.toString());
             
-        	request = new StringInputStream(envelope.toString());
+            request = new ByteArrayInputStream(envelope.toString().getBytes("UTF-8"));
         	
             PortInfo portInfo = new PortInfo();
             portInfo.setLocation(serviceName);



Mime
View raw message