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 de...@apache.org on 2006/09/05 11:13:28 UTC
svn commit: r440301 - in /webservices/axis2/trunk/java/modules:
integration/test/org/apache/axis2/engine/
kernel/src/org/apache/axis2/description/
Author: deepal
Date: Tue Sep 5 02:13:27 2006
New Revision: 440301
URL: http://svn.apache.org/viewvc?view=rev&rev=440301
Log:
fixing 1103
Modified:
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLMultipleTest.java
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutOnlyAxisOperation.java
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLMultipleTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLMultipleTest.java?view=diff&rev=440301&r1=440300&r2=440301
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLMultipleTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLMultipleTest.java Tue Sep 5 02:13:27 2006
@@ -15,12 +15,12 @@
*/
package org.apache.axis2.engine;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
import junit.framework.Test;
+import junit.framework.TestSuite;
import org.apache.axiom.om.OMElement;
import org.apache.axis2.AxisFault;
import org.apache.axis2.Constants;
+import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.client.ServiceClient;
import org.apache.axis2.client.async.AsyncResult;
@@ -43,7 +43,7 @@
public class EchoRawXMLMultipleTest extends UtilServerBasedTestCase implements TestConstants {
- private static final Log log = LogFactory.getLog(EchoRawXMLMultipleTest.class);
+ private static final Log log = LogFactory.getLog(EchoRawXMLMultipleTest.class);
protected QName transportName = new QName("http://localhost/my",
"NullTransport");
@@ -89,6 +89,7 @@
"target/test-resources/integrationRepo/conf/axis2.xml");
ServiceClient sender = new ServiceClient(configContext, null);
sender.setOptions(options);
+ options.setAction("urn:echoOMElement");
options.setTo(targetEPR);
for (int i = 0; i < 5; i++) {
Callback callback = new Callback() {
@@ -129,10 +130,11 @@
ServiceClient sender = new ServiceClient(configContext, null);
for (int i = 0; i < 5; i++) {
Options options = new Options();
+ options.setAction("urn:echoOMElement");
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
options.setUseSeparateListener(true);
- options.setAction(Constants.AXIS2_NAMESPACE_URI+"/"+operationName.getLocalPart());
-
+ options.setAction(Constants.AXIS2_NAMESPACE_URI + "/" + operationName.getLocalPart());
+
Callback callback = new Callback() {
public void onComplete(AsyncResult result) {
@@ -195,9 +197,10 @@
ConfigurationContextFactory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",
"target/test-resources/integrationRepo/conf/axis2.xml");
ServiceClient sender = new ServiceClient(configContext, null);
- options.setAction(Constants.AXIS2_NAMESPACE_URI+"/"+operationName.getLocalPart());
-
+ options.setAction(Constants.AXIS2_NAMESPACE_URI + "/" + operationName.getLocalPart());
+ options.setAction("urn:echoOMElement");
sender.setOptions(options);
+
for (int i = 0; i < 5; i++) {
OMElement result = sender.sendReceive(payload);
TestingUtils.campareWithCreatedOMElement(result);
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java?view=diff&rev=440301&r1=440300&r2=440301
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java Tue Sep 5 02:13:27 2006
@@ -228,6 +228,9 @@
}
//setting AxisMessage
mc.setAxisMessage(axisOp.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE));
+ if (mc.getSoapAction() == null || "".equals(mc.getSoapAction())) {
+ mc.setSoapAction(options.getAction());
+ }
mc.setOptions(options);
// do Target Resolution
@@ -252,12 +255,6 @@
mc.setTransportIn(options.getTransportIn());
}
- if (mc.getSoapAction() == null || "".equals(mc.getSoapAction())) {
- String soapaction = axisOp.getSoapAction();
- if (soapaction != null) {
- mc.setSoapAction(soapaction);
- }
- }
addReferenceParameters(mc);
if (options.isUseSeparateListener()) {
CallbackReceiver callbackReceiver = (CallbackReceiver) axisOp
@@ -282,7 +279,6 @@
// Options object reused so soapAction needs to be removed so
// that soapAction+wsa:Action on response don't conflict
- options.setAction("");
} else {
if (block) {
// Send the SOAP Message and receive a response
@@ -333,11 +329,9 @@
}
/**
- * @return Returns MessageContext.
- * @throws AxisFault
- * Sends the message using a two way transport and waits for a response
- *
* @param msgctx
+ * @return Returns MessageContext.
+ * @throws AxisFault Sends the message using a two way transport and waits for a response
*/
protected MessageContext send(MessageContext msgctx) throws AxisFault {
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutOnlyAxisOperation.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutOnlyAxisOperation.java?view=diff&rev=440301&r1=440300&r2=440301
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutOnlyAxisOperation.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/OutOnlyAxisOperation.java Tue Sep 5 02:13:27 2006
@@ -320,6 +320,9 @@
ConfigurationContext cc = sc.getConfigurationContext();
// set options on the message context
+ if (mc.getSoapAction() == null || "".equals(mc.getSoapAction())) {
+ mc.setSoapAction(options.getAction());
+ }
mc.setOptions(options);
mc.setAxisMessage(axisOp.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE));
@@ -337,13 +340,6 @@
.getAxisConfiguration(), toEPR, mc);
}
mc.setTransportOut(senderTransport);
-
- if (mc.getSoapAction() == null) {
- String soapaction = axisOp.getSoapAction();
- if (soapaction != null) {
- mc.setSoapAction(soapaction);
- }
- }
// create the operation context for myself
OperationContext oc = new OperationContext(axisOp, sc);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org