You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by di...@apache.org on 2005/09/03 20:55:32 UTC
svn commit: r267492 -
/webservices/sandesha/branches/sandesha_1_0/src/org/apache/sandesha/client/ClientPropertyValidator.java
Author: dims
Date: Sat Sep 3 11:55:29 2005
New Revision: 267492
URL: http://svn.apache.org/viewcvs?rev=267492&view=rev
Log:
Check the operation type as well to determine ONE_WAY
Modified:
webservices/sandesha/branches/sandesha_1_0/src/org/apache/sandesha/client/ClientPropertyValidator.java
Modified: webservices/sandesha/branches/sandesha_1_0/src/org/apache/sandesha/client/ClientPropertyValidator.java
URL: http://svn.apache.org/viewcvs/webservices/sandesha/branches/sandesha_1_0/src/org/apache/sandesha/client/ClientPropertyValidator.java?rev=267492&r1=267491&r2=267492&view=diff
==============================================================================
--- webservices/sandesha/branches/sandesha_1_0/src/org/apache/sandesha/client/ClientPropertyValidator.java (original)
+++ webservices/sandesha/branches/sandesha_1_0/src/org/apache/sandesha/client/ClientPropertyValidator.java Sat Sep 3 11:55:29 2005
@@ -17,12 +17,14 @@
package org.apache.sandesha.client;
import org.apache.axis.AxisFault;
+import org.apache.axis.description.OperationDesc;
import org.apache.axis.client.Call;
import org.apache.sandesha.Constants;
import org.apache.sandesha.RMMessageContext;
import org.apache.sandesha.SandeshaContext;
import javax.xml.namespace.QName;
+import javax.wsdl.OperationType;
/**
* This class is used to get the client side properties and to set them to the RMMessageContext.
@@ -123,14 +125,19 @@
* @return
*/
private static boolean getInOut(Call call) {
- QName returnQName = (QName) call.getReturnType();
- if (returnQName != null)
- return true;
- else
- return false;
-
+ OperationDesc oper = call.getOperation();
+ if (oper != null) {
+ if (oper.getMep() == OperationType.ONE_WAY) {
+ return false;
+ }
+ } else {
+ QName returnQName = (QName) call.getReturnType();
+ if (returnQName == null) {
+ return false;
+ }
+ }
+ return true;
}
-
private static String getAction(Call call) {
String action = (String) call.getProperty(Constants.ClientProperties.ACTION);
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org