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 ch...@apache.org on 2005/12/02 04:55:02 UTC

svn commit: r351568 - in /webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients: AsyncEchoClient.java AsyncPingClient.java SyncEchoClient.java SyncPingClient.java

Author: chamikara
Date: Thu Dec  1 19:54:44 2005
New Revision: 351568

URL: http://svn.apache.org/viewcvs?rev=351568&view=rev
Log:
Some changes due to recent modifications to Axis2

Modified:
    webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/AsyncEchoClient.java
    webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/AsyncPingClient.java
    webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/SyncEchoClient.java
    webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/SyncPingClient.java

Modified: webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/AsyncEchoClient.java
URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/AsyncEchoClient.java?rev=351568&r1=351567&r2=351568&view=diff
==============================================================================
--- webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/AsyncEchoClient.java (original)
+++ webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/AsyncEchoClient.java Thu Dec  1 19:54:44 2005
@@ -18,10 +18,8 @@
 
 import javax.xml.namespace.QName;
 
-import org.apache.axis2.AxisFault;
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.client.Call;
-import org.apache.axis2.client.MessageSender;
 import org.apache.axis2.client.Options;
 import org.apache.axis2.client.async.AsyncResult;
 import org.apache.axis2.client.async.Callback;
@@ -31,7 +29,6 @@
 import org.apache.axis2.om.OMFactory;
 import org.apache.axis2.om.OMNamespace;
 import org.apache.axis2.soap.SOAP12Constants;
-import org.apache.sandesha2.Sandesha2Constants;
 import org.apache.sandesha2.Sandesha2Constants.ClientAPI;
 import org.apache.sandesha2.util.SandeshaUtil;
 
@@ -65,11 +62,9 @@
 		
 		Call call = new Call(AXIS2_CLIENT_PATH);
 		call.engageModule(new QName("sandesha"));
-		
 		Options clientOptions = new Options ();
 		clientOptions.setProperty(Options.COPY_PROPERTIES,new Boolean (true));
 		call.setClientOptions(clientOptions);
-		//call.set(Sandesha2Constants.SANDESHA_DEBUG_MODE,"on");
 		clientOptions.setProperty(ClientAPI.AcksTo,acksToEPR);
 		clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
 		clientOptions.setTo(new EndpointReference(toEPR));
@@ -77,7 +72,6 @@
 		clientOptions.setProperty(ClientAPI.SEQUENCE_KEY,"sequence1");  //Optional
 		clientOptions.setSoapAction("test:soap:action");
 		clientOptions.setProperty(ClientAPI.OFFERED_SEQUENCE_ID,SandeshaUtil.getUUID());  //Optional
-		clientOptions.setTransportInfo(org.apache.axis2.Constants.TRANSPORT_HTTP,org.apache.axis2.Constants.TRANSPORT_HTTP,true);
 		Callback callback1 = new TestCallback ("Callback 1");
 		call.invokeNonBlocking("echoString", getEchoOMBlock("echo1"),callback1);
 		Callback callback2 = new TestCallback ("Callback 2");

Modified: webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/AsyncPingClient.java
URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/AsyncPingClient.java?rev=351568&r1=351567&r2=351568&view=diff
==============================================================================
--- webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/AsyncPingClient.java (original)
+++ webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/AsyncPingClient.java Thu Dec  1 19:54:44 2005
@@ -19,7 +19,6 @@
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.AxisFault;
-import org.apache.axis2.Constants;
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.client.MessageSender;
 import org.apache.axis2.client.Options;
@@ -28,7 +27,6 @@
 import org.apache.axis2.om.OMFactory;
 import org.apache.axis2.om.OMNamespace;
 import org.apache.axis2.soap.SOAP12Constants;
-import org.apache.sandesha2.Sandesha2Constants;
 import org.apache.sandesha2.Sandesha2Constants.ClientAPI;
 
 
@@ -63,7 +61,6 @@
 		MessageSender sender = new MessageSender (AXIS2_CLIENT_PATH);
 		Options clientOptions = new Options ();
 		clientOptions.setProperty(Options.COPY_PROPERTIES,new Boolean (true));
-		clientOptions.setSenderTransportProtocol(Constants.TRANSPORT_HTTP);
 		sender.setClientOptions(clientOptions);
 		clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
 		clientOptions.setProperty(ClientAPI.AcksTo,acksToEPR);

Modified: webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/SyncEchoClient.java
URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/SyncEchoClient.java?rev=351568&r1=351567&r2=351568&view=diff
==============================================================================
--- webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/SyncEchoClient.java (original)
+++ webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/SyncEchoClient.java Thu Dec  1 19:54:44 2005
@@ -19,10 +19,8 @@
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.AxisFault;
-import org.apache.axis2.Constants;
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.client.Call;
-import org.apache.axis2.client.MessageSender;
 import org.apache.axis2.client.Options;
 import org.apache.axis2.client.async.AsyncResult;
 import org.apache.axis2.client.async.Callback;
@@ -31,8 +29,6 @@
 import org.apache.axis2.om.OMFactory;
 import org.apache.axis2.om.OMNamespace;
 import org.apache.axis2.soap.SOAP12Constants;
-import org.apache.axis2.soap.SOAPConstants;
-import org.apache.sandesha2.Sandesha2Constants;
 import org.apache.sandesha2.Sandesha2Constants.ClientAPI;
 import org.apache.sandesha2.util.SandeshaUtil;
 
@@ -62,13 +58,11 @@
 		call.engageModule(new QName("sandesha"));
 		Options clientOptions = new Options ();
 		clientOptions.setProperty(Options.COPY_PROPERTIES,new Boolean (true));
-		clientOptions.setSenderTransportProtocol(Constants.TRANSPORT_HTTP);
 		clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
 		call.setClientOptions(clientOptions);
 		clientOptions.setTo(new EndpointReference(toEPR));
 		clientOptions.setProperty(ClientAPI.SEQUENCE_KEY,"sequence1");
 		clientOptions.setProperty(ClientAPI.OFFERED_SEQUENCE_ID,SandeshaUtil.getUUID());
-		clientOptions.setTransportInfo(org.apache.axis2.Constants.TRANSPORT_HTTP,org.apache.axis2.Constants.TRANSPORT_HTTP,true);
 		Callback callback1 = new TestCallback ("Callback 1");
 		call.invokeNonBlocking("echoString", getEchoOMBlock("echo1"),callback1);
 		Callback callback2 = new TestCallback ("Callback 2");

Modified: webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/SyncPingClient.java
URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/SyncPingClient.java?rev=351568&r1=351567&r2=351568&view=diff
==============================================================================
--- webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/SyncPingClient.java (original)
+++ webservices/sandesha/trunk/samples/src/org/apache/sandesha2/samples/interop/clients/SyncPingClient.java Thu Dec  1 19:54:44 2005
@@ -19,18 +19,14 @@
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.AxisFault;
-import org.apache.axis2.Constants;
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.client.MessageSender;
 import org.apache.axis2.client.Options;
-import org.apache.axis2.context.MessageContextConstants;
 import org.apache.axis2.om.OMAbstractFactory;
 import org.apache.axis2.om.OMElement;
 import org.apache.axis2.om.OMFactory;
 import org.apache.axis2.om.OMNamespace;
-import org.apache.axis2.soap.SOAP11Constants;
 import org.apache.axis2.soap.SOAP12Constants;
-import org.apache.sandesha2.Sandesha2Constants;
 import org.apache.sandesha2.Sandesha2Constants.ClientAPI;
 
 
@@ -59,14 +55,10 @@
 		
 		MessageSender sender = new MessageSender (AXIS2_CLIENT_PATH);
 		sender.engageModule(new QName ("sandesha"));
-		//sender.set(Sandesha2Constants.SANDESHA_DEBUG_MODE,"on");
 		Options clientOptions = new Options ();
 		sender.setClientOptions(clientOptions);
-		
 		clientOptions.setProperty(Options.COPY_PROPERTIES,new Boolean (true));
-		clientOptions.setSenderTransportProtocol(Constants.TRANSPORT_HTTP);
 		clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
-		
 		clientOptions.setTo(new EndpointReference(toEPR));
 		clientOptions.setProperty(ClientAPI.SEQUENCE_KEY,"sequence1");
 		sender.send("ping",getPingOMBlock("ping1"));



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