You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2007/08/10 20:18:30 UTC

svn commit: r564702 - in /ode/trunk/axis2-war/src/main/webapp/WEB-INF: conf/axis2.xml web.xml

Author: mriou
Date: Fri Aug 10 11:18:29 2007
New Revision: 564702

URL: http://svn.apache.org/viewvc?view=rev&rev=564702
Log:
Better Axis2 RESTful readiness. This is not really well documented in Axis2 ATM (still in RC) so there might be a few glitches but this configuration seems to work. I'm able to curl a process without breaking the others SOAPy routing.

Modified:
    ode/trunk/axis2-war/src/main/webapp/WEB-INF/conf/axis2.xml
    ode/trunk/axis2-war/src/main/webapp/WEB-INF/web.xml

Modified: ode/trunk/axis2-war/src/main/webapp/WEB-INF/conf/axis2.xml
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/main/webapp/WEB-INF/conf/axis2.xml?view=diff&rev=564702&r1=564701&r2=564702
==============================================================================
--- ode/trunk/axis2-war/src/main/webapp/WEB-INF/conf/axis2.xml (original)
+++ ode/trunk/axis2-war/src/main/webapp/WEB-INF/conf/axis2.xml Fri Aug 10 11:18:29 2007
@@ -60,7 +60,7 @@
     <!--Our HTTP endpoints can handle both REST and SOAP. Following parameters can be used to distingiush those endpoints-->
     <!--In case of a servlet, if you change this you have to manually change the settings of your servlet container to map this -->
     <!--context path to proper Axis2 servlets-->
-    <!--<parameter name="servicePath" locked="false">services</parameter>-->
+    <parameter name="servicePath" locked="false">processes</parameter>
     <!--<parameter name="restPath" locked="false">rest</parameter>-->
 
 
@@ -72,13 +72,13 @@
     <!--parameters help to tweak the message handling of two main servlets. -->
 
     <!-- If the enableRESTInAxis2MainServlet is true, then Axis2MainServlet will handle both SOAP and REST messages -->
-    <parameter name="enableRESTInAxis2MainServlet" locked="true">false</parameter>
+    <parameter name="enableRESTInAxis2MainServlet" locked="true">true</parameter>
 
     <!-- Following parameter will completely disable REST handling in both the servlets-->
     <parameter name="disableREST" locked="true">false</parameter>
 
     <!-- This will disable the separate servlet we have for REST handling. -->
-    <parameter name="disableSeparateEndpointForREST" locked="true">false</parameter>
+    <parameter name="disableSeparateEndpointForREST" locked="true">true</parameter>
 
     <!-- If you have a frontend host which exposes this webservice using a different public URL  -->
     <!-- use this parameter to override autodetected url -->
@@ -233,8 +233,15 @@
         <phase name="Security"/>
         <phase name="PreDispatch"/>
         <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
-	    <handler name="ODEAxisDispatcher"
-		     class="org.apache.ode.axis2.hooks.ODEAxisDispatcher">
+            <handler name="RequestURIBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/>
+            <handler name="RequestURIOperationDispatcher"
+                     class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/>
+            <handler name="HTTPLocationBasedDispatcher"
+                     class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/>
+
+	        <handler name="ODEAxisDispatcher"
+		             class="org.apache.ode.axis2.hooks.ODEAxisDispatcher">
                 <order phase="Dispatch"/>
             </handler>
         </phase>

Modified: ode/trunk/axis2-war/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/main/webapp/WEB-INF/web.xml?view=diff&rev=564702&r1=564701&r2=564702
==============================================================================
--- ode/trunk/axis2-war/src/main/webapp/WEB-INF/web.xml (original)
+++ ode/trunk/axis2-war/src/main/webapp/WEB-INF/web.xml Fri Aug 10 11:18:29 2007
@@ -43,8 +43,7 @@
     <servlet>
         <servlet-name>AxisAdminServlet</servlet-name>
         <display-name>Apache-Axis AxisAdmin Servlet (REST)</display-name>
-        <servlet-class>
-            org.apache.axis2.transport.http.AxisAdminServlet</servlet-class>
+        <servlet-class>org.apache.axis2.transport.http.AxisAdminServlet</servlet-class>
     </servlet>
 
     <servlet-mapping>