You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2006/04/23 13:46:55 UTC

svn commit: r396257 - in /webservices/axis2/trunk/java/modules/samples/resources/security: README.txt build.xml client.axis2.xml

Author: deepal
Date: Sun Apr 23 04:46:54 2006
New Revision: 396257

URL: http://svn.apache.org/viewcvs?rev=396257&view=rev
Log:
fixing security sample

Modified:
    webservices/axis2/trunk/java/modules/samples/resources/security/README.txt
    webservices/axis2/trunk/java/modules/samples/resources/security/build.xml
    webservices/axis2/trunk/java/modules/samples/resources/security/client.axis2.xml

Modified: webservices/axis2/trunk/java/modules/samples/resources/security/README.txt
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/resources/security/README.txt?rev=396257&r1=396256&r2=396257&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/resources/security/README.txt (original)
+++ webservices/axis2/trunk/java/modules/samples/resources/security/README.txt Sun Apr 23 04:46:54 2006
@@ -11,19 +11,19 @@
 ------------------------------------------------------------------------------
 Please follow each of the following steps:
 
-1.) Download the security-0.95.mar and addressing-0.95.mar from 
+1.) Download the security-SNAPSHOT.mar and addressing-0.95.mar from 
 	http://ws.apache.org/axis2/modules/
 2.) To engage the security (WSS4J) module add the following line to axis2.xml in axis
 	<module ref="security"/>
 3.) Copy samples/security/SecureService.aar to axis2/WEB-INF/services/ directory
 4.) Copy all jars other than the secUtil.jar in the samples/security/lib directory to axis2/WEB-INF/lib/
-5.) Copy the downloaded security-0.95.mar to Axis2/WEB-INF/modules/ directory
+5.) Copy the downloaded security-SNAPSHOT.mar to Axis2/WEB-INF/modules/ directory
 6.) Start Tomcat
 
 Run the sample
 ------------------------------------------------------------------------------
 
-Copy the downloaded security-0.95.mar and addressing-0.95.mar to samples/security/client_repo/modules/ directory
+Copy the downloaded security-SNAPSHOT.mar and addressing-SNAPSHOT.mar to samples/security/client_repo/modules/ directory
 
 To run the sample client run the securitySample ant task in the ant build file available in the samples directory.
 	$ ant securitySample

Modified: webservices/axis2/trunk/java/modules/samples/resources/security/build.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/resources/security/build.xml?rev=396257&r1=396256&r2=396257&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/resources/security/build.xml (original)
+++ webservices/axis2/trunk/java/modules/samples/resources/security/build.xml Sun Apr 23 04:46:54 2006
@@ -11,7 +11,8 @@
 
     <target name="securitySample">
         <java classname="sample.security.Client" classpathref="axis.classpath" fork="true">
-		<arg value="client_repo"/>
+         <jvmarg value="-Daxis2.xml=client_repo/conf/axis2.xml"/>
+        <arg value="client_repo"/>
 		<arg value="8080"/>
 	</java>
     </target>

Modified: webservices/axis2/trunk/java/modules/samples/resources/security/client.axis2.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/resources/security/client.axis2.xml?rev=396257&r1=396256&r2=396257&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/resources/security/client.axis2.xml (original)
+++ webservices/axis2/trunk/java/modules/samples/resources/security/client.axis2.xml Sun Apr 23 04:46:54 2006
@@ -104,19 +104,19 @@
     <!-- ================================================= -->
     <phaseOrder type="inflow">
         <!--  System pre defined phases       -->
-        <phase name="TransportIn"/>
-        <phase name="PreDispatch"/>
-        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
+         <phase name="Transport">
             <handler name="RequestURIBasedDispatcher"
                      class="org.apache.axis2.engine.RequestURIBasedDispatcher">
                 <order phase="Dispatch"/>
             </handler>
-
             <handler name="SOAPActionBasedDispatcher"
                      class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
                 <order phase="Dispatch"/>
             </handler>
-
+        </phase>
+        <phase name="Security"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
             <handler name="AddressingBasedDispatcher"
                      class="org.apache.axis2.engine.AddressingBasedDispatcher">
                 <order phase="Dispatch"/>
@@ -144,6 +144,32 @@
         <phase name="MessageOut"/>
     </phaseOrder>
     <phaseOrder type="INfaultflow">
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
+            <handler name="RequestURIBasedDispatcher"
+                     class="org.apache.axis2.engine.RequestURIBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <handler name="SOAPActionBasedDispatcher"
+                     class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <handler name="AddressingBasedDispatcher"
+                     class="org.apache.axis2.engine.AddressingBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <handler name="SOAPMessageBodyBasedDispatcher"
+                     class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+            <handler name="InstanceDispatcher"
+                     class="org.apache.axis2.engine.InstanceDispatcher">
+                <order phase="PostDispatch"/>
+            </handler>
+        </phase>
         <!--      user can add his own phases to this area  -->
         <phase name="OperationInFaultPhase"/>
     </phaseOrder>
@@ -152,5 +178,6 @@
         <phase name="OperationOutFaultPhase"/>
         <phase name="PolicyDetermination"/>
         <phase name="MessageOut"/>
-    </phaseOrder></axisconfig>
+    </phaseOrder>
+    </axisconfig>