[prev in list] [next in list] [prev in thread] [next in thread]
List: wsf-c-commits
Subject: [Wsf-c-commits] svn commit r22232 - trunk/wsf/c/wsclient/samples
From: damitha () wso2 ! com
Date: 2008-10-04 4:02:27
Message-ID: E1KlyLb-0004al-Gh () wso2 ! org
[Download RAW message or body]
Author: damitha
Date: Fri Oct 3 21:02:27 2008
New Revision: 22232
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=22232
Log:
updating the samples
Modified:
trunk/wsf/c/wsclient/samples/sec_echo.sh
trunk/wsf/c/wsclient/samples/sec_echo_with_policy.sh
Modified: trunk/wsf/c/wsclient/samples/sec_echo.sh
URL: http://wso2.org/svn/browse/wso2/trunk/wsf/c/wsclient/samples/sec_echo.sh?rev=22232&r1=22231&r2=22232&view=diff
==============================================================================
--- trunk/wsf/c/wsclient/samples/sec_echo.sh (original)
+++ trunk/wsf/c/wsclient/samples/sec_echo.sh Fri Oct 3 21:02:27 2008
@@ -1,6 +1,40 @@
#!/bin/bash
+
if test -z $WSFC_HOME; then
WSFC_HOME=$PWD/../../..
fi
+INST_DIR=$AXIS2C_HOME
+SERVICE_HOME="$INST_DIR/services/sec_echo"
+
+_SMPL_DIR="$PWD"
+
+if [ $# -ne 1 ]
+then
+ echo "Usage : $0 server-port"
+ exit
+fi
+
+ _PORT=$1
+ echo "-------------------------------------------------------------------------"
+ echo "Deploying server with required sec_policy for sec_echo service"
+
+ echo "Replacing sec_echo/services.xml"
+ if [ `uname -s` = Darwin ]
+ then
+ sed -e 's,AXIS2C_HOME,'$INST_DIR',g' -e 's,\.so,\.dylib,g' \
data/sec_echo_services.xml > $SERVICE_HOME/services.xml + else
+ sed 's,AXIS2C_HOME,'$INST_DIR',g' data/sec_echo_services.xml > \
$SERVICE_HOME/services.xml + fi
+
+ killall axis2_http_server
+ cd $AXIS2C_HOME/bin
+ echo "Start server @ $_PORT"
+ ./axis2_http_server -p$_PORT &
+ sleep 2
+ cd $_SMPL_DIR
+ echo "Run the sample"
$WSFC_HOME/bin/wsclient --soap --no-mtom --user alice --digest --password password \
--timestamp --sign-body --key \
/axis2c/deploy/bin/samples/rampart/keys/ahome/alice_key.pem --certificate \
/axis2c/deploy/bin/samples/rampart/keys/ahome/alice_cert.cert --recipient-certificate \
/axis2c/deploy/bin/samples/rampart/keys/ahome/bob_cert.cert --encrypt-signature \
--encrypt-payload http://localhost:9090/axis2/services/sec_echo \
<$WSFC_HOME/bin/samples/wsclient/data/echo.xml +
+killall axis2_http_server
+echo "DONE"
Modified: trunk/wsf/c/wsclient/samples/sec_echo_with_policy.sh
URL: http://wso2.org/svn/browse/wso2/trunk/wsf/c/wsclient/samples/sec_echo_with_policy.sh?rev=22232&r1=22231&r2=22232&view=diff
==============================================================================
--- trunk/wsf/c/wsclient/samples/sec_echo_with_policy.sh (original)
+++ trunk/wsf/c/wsclient/samples/sec_echo_with_policy.sh Fri Oct 3 21:02:27 2008
@@ -3,4 +3,38 @@
WSFC_HOME=$PWD/../../..
fi
+INST_DIR=$AXIS2C_HOME
+SERVICE_HOME="$INST_DIR/services/sec_echo"
+
+_SMPL_DIR="$PWD"
+
+if [ $# -ne 1 ]
+then
+ echo "Usage : $0 server-port"
+ exit
+fi
+
+ _PORT=$1
+ echo "-------------------------------------------------------------------------"
+ echo "Deploying server with required sec_policy for sec_echo service"
+
+ echo "Replacing sec_echo/services.xml"
+ if [ `uname -s` = Darwin ]
+ then
+ sed -e 's,AXIS2C_HOME,'$INST_DIR',g' -e 's,\.so,\.dylib,g' \
data/sec_echo_services.xml > $SERVICE_HOME/services.xml + else
+ sed 's,AXIS2C_HOME,'$INST_DIR',g' data/sec_echo_services.xml > \
$SERVICE_HOME/services.xml + fi
+
+ killall axis2_http_server
+ cd $AXIS2C_HOME/bin
+ echo "Start server @ $_PORT"
+ ./axis2_http_server -p$_PORT &
+ sleep 2
+ cd $_SMPL_DIR
+ echo "Run the sample"
+
$WSFC_HOME/bin/wsclient --soap --no-mtom --user alice --digest --password password \
--key /axis2c/deploy/bin/samples/rampart/keys/ahome/alice_key.pem --certificate \
/axis2c/deploy/bin/samples/rampart/keys/ahome/alice_cert.cert --recipient-certificate \
/axis2c/deploy/bin/samples/rampart/keys/ahome/bob_cert.cert --policy-file \
$WSFC_HOME/bin/samples/wsclient/data/policy.xml \
http://localhost:9090/axis2/services/sec_echo \
<$WSFC_HOME/bin/samples/wsclient/data/echo.xml +
+killall axis2_http_server
+echo "DONE"
_______________________________________________
Wsf-c-commits mailing list
Wsf-c-commits@wso2.org
http://mailman.wso2.org/cgi-bin/mailman/listinfo/wsf-c-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic