Return-Path: Delivered-To: apmail-ws-sandesha-dev-archive@www.apache.org Received: (qmail 98252 invoked from network); 31 Jan 2006 06:13:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Jan 2006 06:13:55 -0000 Received: (qmail 26761 invoked by uid 500); 31 Jan 2006 06:13:54 -0000 Delivered-To: apmail-ws-sandesha-dev-archive@ws.apache.org Received: (qmail 26666 invoked by uid 500); 31 Jan 2006 06:13:53 -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 26655 invoked by uid 500); 31 Jan 2006 06:13:53 -0000 Delivered-To: apmail-ws-sandesha-cvs@ws.apache.org Received: (qmail 26652 invoked by uid 99); 31 Jan 2006 06:13:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2006 22:13:53 -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; Mon, 30 Jan 2006 22:13:52 -0800 Received: (qmail 98169 invoked by uid 65534); 31 Jan 2006 06:13:32 -0000 Message-ID: <20060131061332.98167.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r373735 - in /webservices/sandesha/trunk/samples/src/sandesha2/samples: interop/AsyncEchoClient.java interop/AsyncPingClient.java interop/SyncEchoClient.java interop/SyncPingClient.java simpleServer/SimpleSandesha2Server.java Date: Tue, 31 Jan 2006 06:13:31 -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: Mon Jan 30 22:13:06 2006 New Revision: 373735 URL: http://svn.apache.org/viewcvs?rev=373735&view=rev Log: Updated 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/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=373735&r1=373734&r2=373735&view=diff ============================================================================== --- webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java (original) +++ webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncEchoClient.java Mon Jan 30 22:13:06 2006 @@ -16,6 +16,8 @@ package sandesha2.samples.interop; +import java.io.File; + import javax.xml.namespace.QName; import org.apache.axis2.Constants; @@ -54,7 +56,7 @@ private static String 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 + private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + File.separator + "target" + File.separator +"repos" + File.separator + "client" + File.separator; //this will be available after a maven build public static void main(String[] args) throws Exception { @@ -97,7 +99,7 @@ clientOptions.setUseSeparateListener(true); serviceClient.setOptions(clientOptions); - serviceClient.engageModule(new QName ("Sandesha2-0.9")); + serviceClient.engageModule(new QName ("sandesha2")); //clientOptions.setProperty(MessageContextConstants.CHUNKED,Constants.VALUE_FALSE); //clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); String offeredSequenceID = SandeshaUtil.getUUID(); 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=373735&r1=373734&r2=373735&view=diff ============================================================================== --- webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java (original) +++ webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/AsyncPingClient.java Mon Jan 30 22:13:06 2006 @@ -16,15 +16,19 @@ package sandesha2.samples.interop; +import java.io.File; + 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.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.om.OMAbstractFactory; import org.apache.axis2.om.OMElement; @@ -49,7 +53,7 @@ private static String 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 + private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + File.separator + "target" + File.separator +"repos" + File.separator + "client" + File.separator; //this will be available after a maven build public static void main(String[] args) throws AxisFault { @@ -81,10 +85,11 @@ clientOptions.setProperty(Options.COPY_PROPERTIES,new Boolean (true)); clientOptions.setTo(new EndpointReference (toEPR)); clientOptions.setProperty(Sandesha2ClientAPI.AcksTo,acksToEPR); + clientOptions.setTransportInProtocol(Constants.TRANSPORT_HTTP); clientOptions.setProperty(Sandesha2ClientAPI.SEQUENCE_KEY,"sequence1"); serviceClient.setOptions(clientOptions); - serviceClient.engageModule(new QName ("Sandesha2-0.9")); + serviceClient.engageModule(new QName ("sandesha2")); serviceClient.fireAndForget(getPingOMBlock("ping1")); serviceClient.fireAndForget(getPingOMBlock("ping2")); 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=373735&r1=373734&r2=373735&view=diff ============================================================================== --- webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java (original) +++ webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncEchoClient.java Mon Jan 30 22:13:06 2006 @@ -16,6 +16,8 @@ package sandesha2.samples.interop; +import java.io.File; + import javax.xml.namespace.QName; import org.apache.axis2.AxisFault; @@ -50,7 +52,7 @@ private static String 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 + private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + File.separator + "target" + File.separator +"repos" + File.separator + "client" + File.separator; //this will be available after a maven build public static void main(String[] args) throws Exception { @@ -89,7 +91,7 @@ clientOptions.setUseSeparateListener(true); serviceClient.setOptions(clientOptions); - serviceClient.engageModule(new QName ("Sandesha2-0.9")); + serviceClient.engageModule(new QName ("sandesha2")); String offeredSequenceID = SandeshaUtil.getUUID(); clientOptions.setProperty(Sandesha2ClientAPI.OFFERED_SEQUENCE_ID,offeredSequenceID); //Optional 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=373735&r1=373734&r2=373735&view=diff ============================================================================== --- webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java (original) +++ webservices/sandesha/trunk/samples/src/sandesha2/samples/interop/SyncPingClient.java Mon Jan 30 22:13:06 2006 @@ -16,6 +16,8 @@ package sandesha2.samples.interop; +import java.io.File; + import javax.xml.namespace.QName; import org.apache.axis2.AxisFault; @@ -50,7 +52,7 @@ private static String 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 + private static String AXIS2_CLIENT_PATH = SANDESHA2_HOME + File.separator + "target" + File.separator +"repos" + File.separator + "client" + File.separator; //this will be available after a maven build public static void main(String[] args) throws AxisFault { @@ -88,7 +90,7 @@ ServiceClient serviceClient = new ServiceClient (configContext,null); //serviceClient. - serviceClient.engageModule(new QName ("Sandesha2-0.9")); + serviceClient.engageModule(new QName ("sandesha2")); serviceClient.setOptions(clientOptions); serviceClient.fireAndForget(getPingOMBlock("ping1")); 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=373735&r1=373734&r2=373735&view=diff ============================================================================== --- webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java (original) +++ webservices/sandesha/trunk/samples/src/sandesha2/samples/simpleServer/SimpleSandesha2Server.java Mon Jan 30 22:13:06 2006 @@ -16,6 +16,8 @@ package sandesha2.samples.simpleServer; +import java.io.File; + import org.apache.axis2.AxisFault; import org.apache.axis2.transport.http.SimpleHTTPServer; @@ -23,7 +25,7 @@ private static String SANDESHA2_HOME = ""; //Change this to ur path. - private static String AXIS2_SERVER_PATH = SANDESHA2_HOME + "\\target\\repos\\server\\"; //this will be available after a maven build + private static String AXIS2_SERVER_PATH = SANDESHA2_HOME + File.separator + "target" + File.separator +"repos" + File.separator + "server" + File.separator; //this will be available after a maven build public static void main(String[] args) throws AxisFault { --------------------------------------------------------------------- To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org For additional commands, e-mail: sandesha-dev-help@ws.apache.org