Return-Path: Delivered-To: apmail-ws-sandesha-dev-archive@www.apache.org Received: (qmail 98073 invoked from network); 19 Jan 2006 06:04:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jan 2006 06:04:21 -0000 Received: (qmail 59131 invoked by uid 500); 19 Jan 2006 06:04:20 -0000 Delivered-To: apmail-ws-sandesha-dev-archive@ws.apache.org Received: (qmail 59094 invoked by uid 500); 19 Jan 2006 06:04:20 -0000 Mailing-List: contact sandesha-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list sandesha-dev@ws.apache.org Received: (qmail 59083 invoked by uid 500); 19 Jan 2006 06:04:20 -0000 Delivered-To: apmail-ws-sandesha-cvs@ws.apache.org Received: (qmail 59076 invoked by uid 99); 19 Jan 2006 06:04:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2006 22:04:19 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 18 Jan 2006 22:04:19 -0800 Received: (qmail 97850 invoked by uid 65534); 19 Jan 2006 06:03:58 -0000 Message-ID: <20060119060358.97849.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r370393 - in /webservices/sandesha/trunk/samples/src/sandesha2/samples: interop/AsyncEchoClient.java interop/AsyncPingClient.java interop/SyncEchoClient.java interop/SyncPingClient.java simpleServer/SimpleSandesha2Server.java Date: Thu, 19 Jan 2006 06:03:57 -0000 To: sandesha-cvs@ws.apache.org From: chamikara@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: chamikara Date: Wed Jan 18 22:03:17 2006 New Revision: 370393 URL: http://svn.apache.org/viewcvs?rev=370393&view=rev Log: Changed the samples to comply with the changes in Axis2. 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/SyncEchoClient.java webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.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=370393&r1=370392&r2=370393&view=diff ============================================================================== --- webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java (original) +++ webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java Wed Jan 18 22:03:17 2006 @@ -78,7 +78,9 @@ return; } - ConfigurationContext configContext = new ConfigurationContextFactory().createConfigurationContextFromFileSystem(AXIS2_CLIENT_PATH); + String axis2_xml = AXIS2_CLIENT_PATH + "axis2.xml"; + + ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(AXIS2_CLIENT_PATH,axis2_xml); ServiceClient serviceClient = new ServiceClient (configContext,null); @@ -96,7 +98,8 @@ serviceClient.setOptions(clientOptions); serviceClient.engageModule(new QName ("Sandesha2-0.9")); - + //clientOptions.setProperty(MessageContextConstants.CHUNKED,Constants.VALUE_FALSE); + //clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); String offeredSequenceID = SandeshaUtil.getUUID(); clientOptions.setProperty(Sandesha2ClientAPI.OFFERED_SEQUENCE_ID,offeredSequenceID); //Optional @@ -105,11 +108,16 @@ Callback callback2 = new TestCallback ("Callback 2"); serviceClient.sendReceiveNonblocking(getEchoOMBlock("echo2"),callback2); - clientOptions.setProperty(Sandesha2ClientAPI.LAST_MESSAGE, "true"); Callback callback3 = new TestCallback ("Callback 3"); serviceClient.sendReceiveNonblocking(getEchoOMBlock("echo3"),callback3); + Callback callback4 = new TestCallback ("Callback 4"); + serviceClient.sendReceiveNonblocking(getEchoOMBlock("echo4"),callback4); + + clientOptions.setProperty(Sandesha2ClientAPI.LAST_MESSAGE, "true"); + Callback callback5 = new TestCallback ("Callback 5"); + serviceClient.sendReceiveNonblocking(getEchoOMBlock("echo5"),callback5); - while (!callback3.isComplete()) { + while (!callback5.isComplete()) { Thread.sleep(1000); } 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=370393&r1=370392&r2=370393&view=diff ============================================================================== --- webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java (original) +++ webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java Wed Jan 18 22:03:17 2006 @@ -71,7 +71,8 @@ return; } - ConfigurationContext configContext = new ConfigurationContextFactory().createConfigurationContextFromFileSystem(AXIS2_CLIENT_PATH); + String axis2_xml = AXIS2_CLIENT_PATH + "axis2.xml"; + ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(AXIS2_CLIENT_PATH,axis2_xml); ServiceClient serviceClient = new ServiceClient (configContext,null); Modified: webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java?rev=370393&r1=370392&r2=370393&view=diff ============================================================================== --- webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java (original) +++ webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java Wed Jan 18 22:03:17 2006 @@ -72,8 +72,8 @@ return; } - - ConfigurationContext configContext = new ConfigurationContextFactory().createConfigurationContextFromFileSystem(AXIS2_CLIENT_PATH); + String axis2_xml = AXIS2_CLIENT_PATH + "axis2.xml"; + ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(AXIS2_CLIENT_PATH,axis2_xml); ServiceClient serviceClient = new ServiceClient (configContext,null); 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=370393&r1=370392&r2=370393&view=diff ============================================================================== --- webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java (original) +++ webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java Wed Jan 18 22:03:17 2006 @@ -19,6 +19,7 @@ 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.InOnlyMEPClient; import org.apache.axis2.client.MessageSender; @@ -27,6 +28,7 @@ import org.apache.axis2.client.ServiceClient; import org.apache.axis2.context.ConfigurationContext; import org.apache.axis2.context.ConfigurationContextFactory; +import org.apache.axis2.context.MessageContextConstants; import org.apache.axis2.description.AxisService; import org.apache.axis2.engine.AxisConfiguration; import org.apache.axis2.engine.MessageReceiver; @@ -71,13 +73,17 @@ System.out.println("ERROR: Please change to your Sandesha2 installation directory."); return; } - ConfigurationContext configContext = new ConfigurationContextFactory().createConfigurationContextFromFileSystem(AXIS2_CLIENT_PATH); + + String axis2_xml = AXIS2_CLIENT_PATH + "axis2.xml"; + ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(AXIS2_CLIENT_PATH,axis2_xml); Options clientOptions = new Options (); // clientOptions.setr\ clientOptions.setProperty(Options.COPY_PROPERTIES, new Boolean (true)); clientOptions.setTo(new EndpointReference (toEPR)); clientOptions.setProperty(Sandesha2ClientAPI.SEQUENCE_KEY,"sequence1"); + // clientOptions.setProperty(MessageContextConstants.CHUNKED,Constants.VALUE_FALSE); + ServiceClient serviceClient = new ServiceClient (configContext,null); //serviceClient. Modified: webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java?rev=370393&r1=370392&r2=370393&view=diff ============================================================================== --- webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java (original) +++ webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java Wed Jan 18 22:03:17 2006 @@ -42,7 +42,10 @@ } System.out.println("Starting sandesha2 server..."); - SimpleHTTPServer server = new SimpleHTTPServer (AXIS2_SERVER_PATH,8080); + + String axis2_xml = AXIS2_SERVER_PATH + "axis2.xml"; + SimpleHTTPServer server = new SimpleHTTPServer (AXIS2_SERVER_PATH,axis2_xml,8080); + server.start(); } } --------------------------------------------------------------------- To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org For additional commands, e-mail: sandesha-dev-help@ws.apache.org