[ http://issues.apache.org/jira/browse/AXIS2-1023?page=comments#action_12429216 ] Eran Chinthaka commented on AXIS2-1023: ---------------------------------------
Now there are three switches for the user enableRESTInAxis2MainServlet - this will decide whether main servlet serves for REST requests as well. The side advantage here is that one can have the same endpoint for both REST and SOAP requests disableREST - once set to true, this will completely disable REST in both the servlets disableSeparateEndpointForREST - as you might already know, we have a separate servlet to handle REST requests (AxisRESTServlet). If this flag is set, that servlet will be disabled. Using the above flags user can get different combinations to fit his requirement. By default all the above params are set to false. Here is how the AxisServlet works when its enabled to handle both SOAP and REST requests. If the content type is either text/xml or application/x-www-form-urlencoded, then its considered as a REST request. Else its a SOAP request. As you can see I have even discarded MTOM handling for REST cases. This was purposely done as MTOM handling is not implemented for non-SOAP cases. Will be opening a JIRA for that in WS-COMMONS JIRA. The implementation is yet to be fully tested. Not resolving this issue until the testing is completed. > Single Axis Servlet for both REST and SOAP > ------------------------------------------ > > Key: AXIS2-1023 > URL: http://issues.apache.org/jira/browse/AXIS2-1023 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Reporter: Davanum Srinivas > Assigned To: Eran Chinthaka > Priority: Blocker > > Maybe with a servlet init parameter that switches as follows? > - SOAP Only > - REST Only > - Both > thanks, > dims -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
