Author: chamikara
Date: Mon May 8 01:23:51 2006
New Revision: 404960
URL: http://svn.apache.org/viewcvs?rev=404960&view=rev
Log:
Updated sample files. Added .sh files to run clients
Added:
webservices/sandesha/trunk/samples/conf/userguide/AsyncEchoClient.sh
webservices/sandesha/trunk/samples/conf/userguide/AsyncPingClient.sh
webservices/sandesha/trunk/samples/conf/userguide/SyncEchoClient.sh
webservices/sandesha/trunk/samples/conf/userguide/SyncPingClient.sh
Modified:
webservices/sandesha/trunk/samples/conf/userguide/services.xml
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncEchoBlockingClient.java
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncEchoClient.java
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncPingClient.java
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/SyncEchoClient.java
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/SyncPingClient.java
Added: webservices/sandesha/trunk/samples/conf/userguide/AsyncEchoClient.sh
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/conf/userguide/AsyncEchoClient.sh?rev=404960&view=auto
==============================================================================
--- webservices/sandesha/trunk/samples/conf/userguide/AsyncEchoClient.sh (added)
+++ webservices/sandesha/trunk/samples/conf/userguide/AsyncEchoClient.sh Mon
May 8 01:23:51 2006
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+export SANDESHA2_CLASS_PATH=./UserguideSampleClients.jar
+AXIS2_CLASSPATH=$AXIS2_CLASSPATH:SGCCalculator.jar
+for f in ./lib/*.jar
+do
+ SANDESHA2_CLASS_PATH=$SANDESHA2_CLASS_PATH:$f
+done
+
+java -cp %SANDESHA2_CLASS_PATH% sandesha2.samples.userguide.AsyncEchoClient ./
\ No newline at end of file
Added: webservices/sandesha/trunk/samples/conf/userguide/AsyncPingClient.sh
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/conf/userguide/AsyncPingClient.sh?rev=404960&view=auto
==============================================================================
--- webservices/sandesha/trunk/samples/conf/userguide/AsyncPingClient.sh (added)
+++ webservices/sandesha/trunk/samples/conf/userguide/AsyncPingClient.sh Mon
May 8 01:23:51 2006
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+export SANDESHA2_CLASS_PATH=./UserguideSampleClients.jar
+AXIS2_CLASSPATH=$AXIS2_CLASSPATH:SGCCalculator.jar
+for f in ./lib/*.jar
+do
+ SANDESHA2_CLASS_PATH=$SANDESHA2_CLASS_PATH:$f
+done
+
+java -cp %SANDESHA2_CLASS_PATH% sandesha2.samples.userguide.AsyncPingClient ./
\ No newline at end of file
Added: webservices/sandesha/trunk/samples/conf/userguide/SyncEchoClient.sh
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/conf/userguide/SyncEchoClient.sh?rev=404960&view=auto
==============================================================================
--- webservices/sandesha/trunk/samples/conf/userguide/SyncEchoClient.sh (added)
+++ webservices/sandesha/trunk/samples/conf/userguide/SyncEchoClient.sh Mon May
8 01:23:51 2006
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+export SANDESHA2_CLASS_PATH=./UserguideSampleClients.jar
+AXIS2_CLASSPATH=$AXIS2_CLASSPATH:SGCCalculator.jar
+for f in ./lib/*.jar
+do
+ SANDESHA2_CLASS_PATH=$SANDESHA2_CLASS_PATH:$f
+done
+
+java -cp %SANDESHA2_CLASS_PATH% sandesha2.samples.userguide.SyncEchoClient ./
\ No newline at end of file
Added: webservices/sandesha/trunk/samples/conf/userguide/SyncPingClient.sh
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/conf/userguide/SyncPingClient.sh?rev=404960&view=auto
==============================================================================
--- webservices/sandesha/trunk/samples/conf/userguide/SyncPingClient.sh (added)
+++ webservices/sandesha/trunk/samples/conf/userguide/SyncPingClient.sh Mon May
8 01:23:51 2006
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+export SANDESHA2_CLASS_PATH=./UserguideSampleClients.jar
+AXIS2_CLASSPATH=$AXIS2_CLASSPATH:SGCCalculator.jar
+for f in ./lib/*.jar
+do
+ SANDESHA2_CLASS_PATH=$SANDESHA2_CLASS_PATH:$f
+done
+
+java -cp %SANDESHA2_CLASS_PATH% sandesha2.samples.userguide.SyncPingClient ./
\ No newline at end of file
Modified: webservices/sandesha/trunk/samples/conf/userguide/services.xml
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/conf/userguide/services.xml?rev=404960&r1=404959&r2=404960&view=diff
==============================================================================
--- webservices/sandesha/trunk/samples/conf/userguide/services.xml (original)
+++ webservices/sandesha/trunk/samples/conf/userguide/services.xml Mon May 8
01:23:51 2006
@@ -14,8 +14,7 @@
<operation name="echoString">
<messageReceiver
class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" />
</operation>
-
-
+
<supported-policy-namespaces
namespaces="http://ws.apache.org/sandesha2/policy" />
<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
Modified:
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncEchoBlockingClient.java
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncEchoBlockingClient.java?rev=404960&r1=404959&r2=404960&view=diff
==============================================================================
---
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncEchoBlockingClient.java
(original)
+++
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncEchoBlockingClient.java
Mon May 8 01:23:51 2006
@@ -102,7 +102,7 @@
clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
//uncomment this to send messages in SOAP 1.2
-//
clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.WSRX);
//uncomment this to send the messages according to the WSRX spec.
+//
clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.v1_1);
//uncomment this to send the messages according to the v1_1 spec.
clientOptions.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,AddressingConstants.Submission.WSA_NAMESPACE);
clientOptions.setProperty(SandeshaClientConstants.OFFERED_SEQUENCE_ID,SandeshaUtil.getUUID());
//Uncomment this to offer a sequenceID for the incoming sequence.
Modified:
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncEchoClient.java
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncEchoClient.java?rev=404960&r1=404959&r2=404960&view=diff
==============================================================================
---
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncEchoClient.java
(original)
+++
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncEchoClient.java
Mon May 8 01:23:51 2006
@@ -106,7 +106,7 @@
clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
//uncomment this to send messages in SOAP 1.2
-//
clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.WSRX);
//uncomment this to send the messages according to the WSRX spec.
+//
clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.v1_1);
//uncomment this to send the messages according to the v1_1 spec.
clientOptions.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,AddressingConstants.Submission.WSA_NAMESPACE);
clientOptions.setProperty(SandeshaClientConstants.OFFERED_SEQUENCE_ID,SandeshaUtil.getUUID());
//Uncomment this to offer a sequenceID for the incoming sequence.
Modified:
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncPingClient.java
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncPingClient.java?rev=404960&r1=404959&r2=404960&view=diff
==============================================================================
---
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncPingClient.java
(original)
+++
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/AsyncPingClient.java
Mon May 8 01:23:51 2006
@@ -18,6 +18,8 @@
import java.io.File;
+import javax.xml.namespace.QName;
+
import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
@@ -80,6 +82,7 @@
ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(AXIS2_CLIENT_PATH,axis2_xml);
ServiceClient serviceClient = new ServiceClient
(configContext,null);
+// serviceClient.engageModule(new QName ("sandesha2"));
Options clientOptions = new Options ();
@@ -87,7 +90,7 @@
//
clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
//uncomment this to send messages in SOAP 1.2
-//
clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.WSRX);
//uncomment this to send the messages according to the WSRX spec.
+//
clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.v1_1);
//uncomment this to send the messages according to the v1_1 spec.
clientOptions.setTo(new EndpointReference (toEPR));
clientOptions.setProperty(SandeshaClientConstants.AcksTo,acksToEPR);
Modified:
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/SyncEchoClient.java
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/SyncEchoClient.java?rev=404960&r1=404959&r2=404960&view=diff
==============================================================================
---
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/SyncEchoClient.java
(original)
+++
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/SyncEchoClient.java
Mon May 8 01:23:51 2006
@@ -80,6 +80,8 @@
ServiceClient serviceClient = new ServiceClient
(configContext,null);
+// serviceClient.engageModule(new QName ("sandesha2"));
+
Options clientOptions = new Options ();
clientOptions.setTo(new EndpointReference (toEPR));
@@ -96,7 +98,7 @@
//
clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
//uncomment this to send messages in SOAP 1.2
-//
clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.WSRX);
//uncomment this to send the messages according to the WSRX spec.
+//
clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.v1_1);
//uncomment this to send the messages according to the v1_1 spec.
//
clientOptions.setProperty(SandeshaClient.OFFERED_SEQUENCE_ID,SandeshaUtil.getUUID());
//Uncomment this to offer a sequenceID for the incoming sequence.
Modified:
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/SyncPingClient.java
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/SyncPingClient.java?rev=404960&r1=404959&r2=404960&view=diff
==============================================================================
---
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/SyncPingClient.java
(original)
+++
webservices/sandesha/trunk/samples/src/sandesha2/samples/userguide/SyncPingClient.java
Mon May 8 01:23:51 2006
@@ -18,6 +18,8 @@
import java.io.File;
+import javax.xml.namespace.QName;
+
import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
@@ -91,12 +93,14 @@
clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
//uncomment this to send messages in SOAP 1.2
-//
clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.WSRX);
//uncomment this to send the messages according to the WSRX spec.
+//
clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.v1_1);
//uncomment this to send the messages according to the v1_1 spec.
//
clientOptions.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,AddressingConstants.Submission.WSA_NAMESPACE);
clientOptions.setProperty(SandeshaClientConstants.SANDESHA_LISTENER, new
SandeshaListenerImpl ());
ServiceClient serviceClient = new ServiceClient
(configContext,null);
+// serviceClient.engageModule(new QName ("sandesha2"));
+
clientOptions.setAction("urn:wsrm:Ping");
serviceClient.setOptions(clientOptions);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]