Author: chamikara
Date: Tue Dec 20 18:09:16 2005
New Revision: 358180

URL: http://svn.apache.org/viewcvs?rev=358180&view=rev
Log:
Updated the samples

Modified:
    
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java
    
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java
    
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java

Modified: 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java
URL: 
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java?rev=358180&r1=358179&r2=358180&view=diff
==============================================================================
--- 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java
 (original)
+++ 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java
 Tue Dec 20 18:09:16 2005
@@ -40,9 +40,9 @@
        
        private String toPort = "8070";
        
-       private String ackIP = "127.0.0.1";
+       private String ackIP = "www-lk.wso2.com"; //"127.0.0.1";
        
-       private String ackPort = "9070";
+       private String ackPort = "9080"; //"9070";
        
        private String toEPR = "http://"; + toIP +  ":" + toPort + 
"/axis2/services/RMInteropService";
 

Modified: 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java
URL: 
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java?rev=358180&r1=358179&r2=358180&view=diff
==============================================================================
--- 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java
 (original)
+++ 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java
 Tue Dec 20 18:09:16 2005
@@ -41,7 +41,7 @@
        private String ackPort = "9070";
 
        private String toEPR = "http://"; + toIP +  ":" + toPort + 
"/axis2/services/RMInteropService";
-
+       
        private String acksToEPR = "http://"; + ackIP +  ":" + ackPort + 
"/axis2/services/AnonymousService/echoString";
        
        private static String SANDESHA2_HOME = "<SANDESHA2_HOME>"; //Change 
this to ur path.
@@ -72,7 +72,7 @@
                Options clientOptions = new Options ();
                clientOptions.setProperty(Options.COPY_PROPERTIES,new Boolean 
(true));
                sender.setClientOptions(clientOptions);
-               
clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+               
//clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
                clientOptions.setProperty(Sandesha2ClientAPI.AcksTo,acksToEPR);
                sender.engageModule(new QName ("Sandesha2-0.9"));
                clientOptions.setTo(new EndpointReference(toEPR));

Modified: 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java
URL: 
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java?rev=358180&r1=358179&r2=358180&view=diff
==============================================================================
--- 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java
 (original)
+++ 
webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java
 Tue Dec 20 18:09:16 2005
@@ -26,6 +26,7 @@
 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.Sandesha2ClientAPI;
 
@@ -37,7 +38,7 @@
        private String toPort = "8070";
        
        private String toEPR = "http://"; + toIP +  ":" + toPort + 
"/axis2/services/RMInteropService";
-
+       
        private static String SANDESHA2_HOME = "<SANDESHA2_HOME>"; //Change 
this to ur path.
        
        private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + 
"\\target\\repos\\client\\";   //this will be available after a maven build
@@ -68,9 +69,14 @@
                sender.engageModule(new QName ("Sandesha2-0.9"));
                Options clientOptions = new Options ();
                sender.setClientOptions(clientOptions);
+               
+               
//clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+               
                clientOptions.setProperty(Options.COPY_PROPERTIES,new Boolean 
(true));
-               
clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+               
clientOptions.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
                clientOptions.setTo(new EndpointReference(toEPR));
+               //clientOptions.
+               
                
clientOptions.setProperty(Sandesha2ClientAPI.SEQUENCE_KEY,"sequence1");
                sender.send("ping",getPingOMBlock("ping1"));
                sender.send("ping",getPingOMBlock("ping2"));



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to