You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by th...@apache.org on 2005/06/23 17:09:53 UTC
svn commit: r193158 - in
/webservices/axis/trunk/java/modules/samples/test/org/apache/axis:
engine/EchoRawXMLLoadTest.java engine/EchoRawXMLOnTwoChannelsSyncTest.java
engine/EchoRawXMLTest.java rest/RESTBasedEchoRawXMLTest.java
tcp/TCPEchoRawXMLTest.java
Author: thilina
Date: Thu Jun 23 08:09:52 2005
New Revision: 193158
URL: http://svn.apache.org/viewcvs?rev=193158&view=rev
Log:
changes due to OMOutputer
Modified:
webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLLoadTest.java
webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLOnTwoChannelsSyncTest.java
webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLTest.java
webservices/axis/trunk/java/modules/samples/test/org/apache/axis/rest/RESTBasedEchoRawXMLTest.java
webservices/axis/trunk/java/modules/samples/test/org/apache/axis/tcp/TCPEchoRawXMLTest.java
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLLoadTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLLoadTest.java?rev=193158&r1=193157&r2=193158&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLLoadTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLLoadTest.java Thu Jun 23 08:09:52 2005
@@ -34,6 +34,7 @@
import org.apache.axis.om.OMElement;
import org.apache.axis.om.OMFactory;
import org.apache.axis.om.OMNamespace;
+import org.apache.axis.om.impl.llom.OMOutputer;
import org.apache.axis.soap.SOAPFactory;
import org.apache.axis.util.Utils;
import org.apache.commons.logging.Log;
@@ -150,7 +151,7 @@
OMElement result1 =
(OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
- result.serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out));
+ result.serializeWithCache(new OMOutputer(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
call.close();
}
}
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLOnTwoChannelsSyncTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLOnTwoChannelsSyncTest.java?rev=193158&r1=193157&r2=193158&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLOnTwoChannelsSyncTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLOnTwoChannelsSyncTest.java Thu Jun 23 08:09:52 2005
@@ -32,6 +32,7 @@
import org.apache.axis.om.OMElement;
import org.apache.axis.om.OMFactory;
import org.apache.axis.om.OMNamespace;
+import org.apache.axis.om.impl.llom.OMOutputer;
import org.apache.axis.soap.SOAPEnvelope;
import org.apache.axis.soap.SOAPFactory;
import org.apache.axis.transport.http.SimpleHTTPServer;
@@ -119,7 +120,7 @@
call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, true);
OMElement result = (OMElement) call.invokeBlocking(operationName.getLocalPart(), method);
- result.serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out));
+ result.serializeWithCache(new OMOutputer(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
call.close();
}
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLTest.java?rev=193158&r1=193157&r2=193158&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawXMLTest.java Thu Jun 23 08:09:52 2005
@@ -37,6 +37,7 @@
import org.apache.axis.om.OMElement;
import org.apache.axis.om.OMFactory;
import org.apache.axis.om.OMNamespace;
+import org.apache.axis.om.impl.llom.OMOutputer;
import org.apache.axis.soap.SOAPFactory;
import org.apache.axis.util.Utils;
import org.apache.commons.logging.Log;
@@ -109,7 +110,7 @@
Callback callback = new Callback() {
public void onComplete(AsyncResult result) {
try {
- result.getResponseEnvelope().serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out));
+ result.getResponseEnvelope().serializeWithCache(new OMOutputer(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
} catch (XMLStreamException e) {
reportError(e);
} finally {
@@ -150,7 +151,7 @@
OMElement result =
(OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
- result.serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out));
+ result.serializeWithCache(new OMOutputer(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
call.close();
}
}
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis/rest/RESTBasedEchoRawXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis/rest/RESTBasedEchoRawXMLTest.java?rev=193158&r1=193157&r2=193158&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis/rest/RESTBasedEchoRawXMLTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis/rest/RESTBasedEchoRawXMLTest.java Thu Jun 23 08:09:52 2005
@@ -39,10 +39,12 @@
import org.apache.axis.om.OMElement;
import org.apache.axis.om.OMFactory;
import org.apache.axis.om.OMNamespace;
+import org.apache.axis.om.impl.llom.OMOutputer;
import org.apache.axis.soap.SOAPFactory;
import org.apache.axis.util.Utils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.apache.axis.om.impl.llom.OMOutputer;
public class RESTBasedEchoRawXMLTest extends TestCase {
private EndpointReference targetEPR =
@@ -200,7 +202,7 @@
call.set(Constants.Configuration.DO_REST,"true");
OMElement result =
(OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
- result.serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out));
+ result.serializeWithCache(new OMOutputer(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
System.out.println(messageInfo.requestMessage);
call.close();
Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis/tcp/TCPEchoRawXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis/tcp/TCPEchoRawXMLTest.java?rev=193158&r1=193157&r2=193158&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis/tcp/TCPEchoRawXMLTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis/tcp/TCPEchoRawXMLTest.java Thu Jun 23 08:09:52 2005
@@ -40,6 +40,7 @@
import org.apache.axis.om.OMElement;
import org.apache.axis.om.OMFactory;
import org.apache.axis.om.OMNamespace;
+import org.apache.axis.om.impl.llom.OMOutputer;
import org.apache.axis.soap.SOAPFactory;
import org.apache.axis.transport.http.SimpleHTTPServer;
import org.apache.axis.util.Utils;
@@ -115,7 +116,7 @@
Callback callback = new Callback() {
public void onComplete(AsyncResult result) {
try {
- result.getResponseEnvelope().serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out));
+ result.getResponseEnvelope().serializeWithCache(new OMOutputer(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
} catch (XMLStreamException e) {
reportError(e);
} finally {
@@ -154,7 +155,7 @@
OMElement result =
(OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
- result.serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out));
+ result.serializeWithCache(new OMOutputer(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
call.close();
}
@@ -179,7 +180,7 @@
call.setTransportInfo(Constants.TRANSPORT_TCP, Constants.TRANSPORT_TCP, true);
OMElement result = (OMElement) call.invokeBlocking(operationName.getLocalPart(), method);
- result.serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out));
+ result.serializeWithCache(new OMOutputer(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
call.close();
}