ws-kandula-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r687744 - in /webservices/kandula/trunk/java/src/org/apache/kandula/wsat: AbstractATNotifierStub.java completion/CompletionCoordinatorPortTypeRawXMLStub.java
Date Thu, 21 Aug 2008 13:18:51 GMT
Author: thilina
Date: Thu Aug 21 06:18:50 2008
New Revision: 687744

URL: http://svn.apache.org/viewvc?rev=687744&view=rev
Log:
fixing the test failure

Modified:
    webservices/kandula/trunk/java/src/org/apache/kandula/wsat/AbstractATNotifierStub.java
    webservices/kandula/trunk/java/src/org/apache/kandula/wsat/completion/CompletionCoordinatorPortTypeRawXMLStub.java

Modified: webservices/kandula/trunk/java/src/org/apache/kandula/wsat/AbstractATNotifierStub.java
URL: http://svn.apache.org/viewvc/webservices/kandula/trunk/java/src/org/apache/kandula/wsat/AbstractATNotifierStub.java?rev=687744&r1=687743&r2=687744&view=diff
==============================================================================
--- webservices/kandula/trunk/java/src/org/apache/kandula/wsat/AbstractATNotifierStub.java
(original)
+++ webservices/kandula/trunk/java/src/org/apache/kandula/wsat/AbstractATNotifierStub.java
Thu Aug 21 06:18:50 2008
@@ -32,10 +32,8 @@
 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.context.ServiceContext;
-import org.apache.axis2.context.ServiceGroupContext;
 import org.apache.axis2.description.AxisOperation;
 import org.apache.axis2.description.AxisService;
-import org.apache.axis2.description.AxisServiceGroup;
 import org.apache.kandula.Constants;
 import org.apache.kandula.faults.AbstractKandulaException;
 import org.apache.kandula.faults.KandulaGeneralException;
@@ -51,25 +49,20 @@
 	protected ServiceContext serviceContext;
 
 	protected EndpointReference toEPR;
-	
-	protected ServiceClient  _serviceClient;
 
-	//TODO: Review this with the latest axis2 changes
+	protected ServiceClient _serviceClient;
+
+	// TODO: Review this with the latest axis2 changes
 	public AbstractATNotifierStub(ConfigurationContext configurationContext)
 			throws AbstractKandulaException {
 
 		this.service = new AxisService("annonService" + new Random().nextInt());
 		try {
-		//	configurationContext.getAxisConfiguration().addService(service);
-		
-	    _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext,service);
+			_serviceClient = new org.apache.axis2.client.ServiceClient(
+					configurationContext, service);
 		} catch (AxisFault e1) {
 			throw new KandulaGeneralException(e1);
 		}
-//	        
-//		ServiceGroupContext sgc = new ServiceGroupContext(configurationContext,
-//				(AxisServiceGroup) this.service.getParent());
-//		this.serviceContext = new ServiceContext(service, sgc);
 	}
 
 	/**
@@ -90,10 +83,11 @@
 			EndpointReference replyToEPR) throws AbstractKandulaException {
 		MessageContext messageContext;
 		try {
-			Options options = new Options();
 			messageContext = new MessageContext();
-			final OperationClient client = _serviceClient.createClient(operations[opIndex].getName());
-				
+			final OperationClient client = _serviceClient
+					.createClient(operations[opIndex].getName());
+			Options options = client.getOptions();
+
 			SOAPFactory factory = OMAbstractFactory.getSOAP12Factory();
 			SOAPEnvelope env = factory.getDefaultEnvelope();
 
@@ -111,12 +105,10 @@
 						"http://www.w3.org/2005/08/addressing/none"));
 			}
 			options.setAction(action);
-			// options.setTranportOut(org.apache.axis2.Constants.TRANSPORT_HTTP);
-			// System.out.println(operations[opIndex]);
 			client.addMessageContext(messageContext);
 			/*
-			 * TODO: Fix the following
-			 * hacking till we get fire and forget corretly in Axis2
+			 * TODO: Fix the following hacking till we get fire and forget
+			 * corretly in Axis2
 			 */
 			Thread thread = new Thread(new Runnable() {
 				public void run() {

Modified: webservices/kandula/trunk/java/src/org/apache/kandula/wsat/completion/CompletionCoordinatorPortTypeRawXMLStub.java
URL: http://svn.apache.org/viewvc/webservices/kandula/trunk/java/src/org/apache/kandula/wsat/completion/CompletionCoordinatorPortTypeRawXMLStub.java?rev=687744&r1=687743&r2=687744&view=diff
==============================================================================
--- webservices/kandula/trunk/java/src/org/apache/kandula/wsat/completion/CompletionCoordinatorPortTypeRawXMLStub.java
(original)
+++ webservices/kandula/trunk/java/src/org/apache/kandula/wsat/completion/CompletionCoordinatorPortTypeRawXMLStub.java
Thu Aug 21 06:18:50 2008
@@ -45,13 +45,13 @@
 		operation.setName(new javax.xml.namespace.QName(Constants.WS_AT,
 				"commitOperation"));
 		operations[0] = operation;
-//		service.addOperation(operation);
+		service.addOperation(operation);
 
 		operation = new OutOnlyAxisOperation();
 		operation.setName(new javax.xml.namespace.QName(Constants.WS_AT,
 				"rollbackOperation"));
 		operations[1] = operation;
-//		service.addOperation(operation);
+		service.addOperation(operation);
 	}
 
 	public void commitOperation() throws AbstractKandulaException {



---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Mime
View raw message