You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by aj...@apache.org on 2005/10/06 12:48:43 UTC
svn commit: r306582 -
/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/tcp/TCPEchoRawXMLTest.java
Author: ajith
Date: Thu Oct 6 03:48:32 2005
New Revision: 306582
URL: http://svn.apache.org/viewcvs?rev=306582&view=rev
Log:
1. Doing a simple refactor
Modified:
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/tcp/TCPEchoRawXMLTest.java
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/tcp/TCPEchoRawXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/tcp/TCPEchoRawXMLTest.java?rev=306582&r1=306581&r2=306582&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/tcp/TCPEchoRawXMLTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/tcp/TCPEchoRawXMLTest.java Thu Oct 6 03:48:32 2005
@@ -94,7 +94,7 @@
UtilsTCPServer.stop();
}
- private OMElement createEnvelope() {
+ private OMElement createPayload() {
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my");
OMElement method = fac.createOMElement("echoOMElement", omNs);
@@ -107,7 +107,7 @@
}
public void testEchoXMLASync() throws Exception {
- OMElement payload = createEnvelope();
+ OMElement payload = createPayload();
org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(
serviceContext);
@@ -154,7 +154,7 @@
public void testEchoXMLSync() throws Exception {
SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
- OMElement payload = createEnvelope();
+ OMElement payload = createPayload();
org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(
serviceContext);
@@ -182,10 +182,10 @@
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my");
- OMElement method = fac.createOMElement("echoOMElement", omNs);
+ OMElement payloadElement = fac.createOMElement("echoOMElement", omNs);
OMElement value = fac.createOMElement("myValue", omNs);
value.setText("Isaac Assimov, the foundation Sega");
- method.addChild(value);
+ payloadElement.addChild(value);
org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(
serviceContext);
@@ -197,7 +197,7 @@
true);
OMElement result = call.invokeBlocking(
- operationName.getLocalPart(), method);
+ operationName.getLocalPart(), payloadElement);
result.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(
System.out));
call.close();