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 he...@apache.org on 2007/06/13 22:16:39 UTC
svn commit: r547013 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Utils.java
Author: hemapani
Date: Wed Jun 13 13:16:38 2007
New Revision: 547013
URL: http://svn.apache.org/viewvc?view=rev&rev=547013
Log:
check in the missing method
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Utils.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Utils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Utils.java?view=diff&rev=547013&r1=547012&r2=547013
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Utils.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Utils.java Wed Jun 13 13:16:38 2007
@@ -33,6 +33,7 @@
import org.apache.axis2.description.AxisServiceGroup;
import org.apache.axis2.description.Flow;
import org.apache.axis2.description.HandlerDescription;
+import org.apache.axis2.description.InOnlyAxisOperation;
import org.apache.axis2.description.InOutAxisOperation;
import org.apache.axis2.description.OutInAxisOperation;
import org.apache.axis2.description.Parameter;
@@ -88,6 +89,26 @@
className,
opName);
}
+
+
+ public static AxisService createSimpleInOnlyService(QName serviceName,
+ MessageReceiver messageReceiver,
+ QName opName)
+ throws AxisFault {
+ AxisService service = new AxisService(serviceName.getLocalPart());
+ service.setClassLoader(Thread.currentThread().getContextClassLoader());
+
+ AxisOperation axisOp = new InOnlyAxisOperation(opName);
+
+ axisOp.setMessageReceiver(messageReceiver);
+ axisOp.setStyle(WSDLConstants.STYLE_RPC);
+ service.addOperation(axisOp);
+ service.mapActionToOperation(Constants.AXIS2_NAMESPACE_URI + "/" + opName.getLocalPart(),
+ axisOp);
+
+ return service;
+ }
+
public static AxisService createSimpleService(QName serviceName,
MessageReceiver messageReceiver, String className,
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org