Author: shankar Date: Wed Oct 21 06:26:55 2009 New Revision: 827897 URL: http://svn.apache.org/viewvc?rev=827897&view=rev Log: Testcase for RAMPARTC-137
Added: webservices/rampart/trunk/c/samples/secpolicy/scenario29/ webservices/rampart/trunk/c/samples/secpolicy/scenario29/client-policy.xml webservices/rampart/trunk/c/samples/secpolicy/scenario29/services.xml Modified: webservices/rampart/trunk/c/samples/secpolicy/README webservices/rampart/trunk/c/samples/secpolicy/run_all.bat webservices/rampart/trunk/c/samples/secpolicy/run_all.sh Modified: webservices/rampart/trunk/c/samples/secpolicy/README URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/secpolicy/README?rev=827897&r1=827896&r2=827897&view=diff ============================================================================== --- webservices/rampart/trunk/c/samples/secpolicy/README (original) +++ webservices/rampart/trunk/c/samples/secpolicy/README Wed Oct 21 06:26:55 2009 @@ -66,6 +66,7 @@ 26. SecureConversation using Rahas module. Issue operation is defined in service 27. Same as 25. With WS-SecurityPolicy1.2, WS-Trust1.3 and WS-SecConv 1.3 28. Same as 26. With WS-SecurityPolicy1.2, WS-Trust1.3 and WS-SecConv 1.3 +29. UserNameToken over transport binding FAQ: --- Modified: webservices/rampart/trunk/c/samples/secpolicy/run_all.bat URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/secpolicy/run_all.bat?rev=827897&r1=827896&r2=827897&view=diff ============================================================================== --- webservices/rampart/trunk/c/samples/secpolicy/run_all.bat (original) +++ webservices/rampart/trunk/c/samples/secpolicy/run_all.bat Wed Oct 21 06:26:55 2009 @@ -7,7 +7,7 @@ -for %%i in (1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19 21 22 23 25 26 27 28) do call test_scen.bat %_SCEN%%%i %_PORT% off +for %%i in (1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19 21 22 23 25 26 27 28 29) do call test_scen.bat %_SCEN%%%i %_PORT% off taskkill /F /IM axis2_http_server.exe echo DONE Modified: webservices/rampart/trunk/c/samples/secpolicy/run_all.sh URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/secpolicy/run_all.sh?rev=827897&r1=827896&r2=827897&view=diff ============================================================================== --- webservices/rampart/trunk/c/samples/secpolicy/run_all.sh (original) +++ webservices/rampart/trunk/c/samples/secpolicy/run_all.sh Wed Oct 21 06:26:55 2009 @@ -4,7 +4,7 @@ _PORT=9090 _SLEEP=2 #You may change these to scenarios u need to run -_LST="1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19 21 22 23 25 26 27 28" +_LST="1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19 21 22 23 25 26 27 28 29" if [ $# -eq 1 ] then Added: webservices/rampart/trunk/c/samples/secpolicy/scenario29/client-policy.xml URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/secpolicy/scenario29/client-policy.xml?rev=827897&view=auto ============================================================================== --- webservices/rampart/trunk/c/samples/secpolicy/scenario29/client-policy.xml (added) +++ webservices/rampart/trunk/c/samples/secpolicy/scenario29/client-policy.xml Wed Oct 21 06:26:55 2009 @@ -0,0 +1,26 @@ +<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" + xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"> + <wsp:ExactlyOne> + <wsp:All> + <sp:TransportBinding> + <wsp:Policy> + </wsp:Policy> + </sp:TransportBinding> + <sp:SignedSupportingTokens> + <wsp:Policy> + <sp:UsernameToken + sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient"> + <wsp:Policy> + <sp:WssUsernameToken10 /> + </wsp:Policy> + </sp:UsernameToken> + </wsp:Policy> + </sp:SignedSupportingTokens> + <rampc:RampartConfig xmlns:rampc="http://ws.apache.org/rampart/c/policy"> + <rampc:User>Alice</rampc:User> + <rampc:PasswordType>Digest</rampc:PasswordType> + <rampc:PasswordCallbackClass>AXIS2C_HOME/samples/lib/rampartc/libpwcb.so</rampc:PasswordCallbackClass> + </rampc:RampartConfig> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> \ No newline at end of file Added: webservices/rampart/trunk/c/samples/secpolicy/scenario29/services.xml URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/secpolicy/scenario29/services.xml?rev=827897&view=auto ============================================================================== --- webservices/rampart/trunk/c/samples/secpolicy/scenario29/services.xml (added) +++ webservices/rampart/trunk/c/samples/secpolicy/scenario29/services.xml Wed Oct 21 06:26:55 2009 @@ -0,0 +1,38 @@ +<service name="sec_echo"> + <parameter name="ServiceClass" locked="xsd:false">sec_echo</parameter> + + <description> + This is a testing service , to test the system is working or not + </description> + <module ref="rampart" /> + + <operation name="echoString"> + <parameter name="wsamapping">http://example.com/ws/2004/09/policy/Test/EchoRequest</parameter> + </operation> + + <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" + xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"> + <wsp:ExactlyOne> + <wsp:All> + <sp:TransportBinding> + <wsp:Policy> + </wsp:Policy> + </sp:TransportBinding> + <sp:SignedSupportingTokens> + <wsp:Policy> + <sp:UsernameToken + sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient"> + <wsp:Policy> + <sp:WssUsernameToken10 /> + </wsp:Policy> + </sp:UsernameToken> + </wsp:Policy> + </sp:SignedSupportingTokens> + <rampc:RampartConfig xmlns:rampc="http://ws.apache.org/rampart/c/policy"> + <rampc:PasswordType>Digest</rampc:PasswordType> + <rampc:PasswordCallbackClass>AXIS2C_HOME/samples/lib/rampartc/libpwcb.so</rampc:PasswordCallbackClass> + </rampc:RampartConfig> + </wsp:All> + </wsp:ExactlyOne> + </wsp:Policy> +</service>