天天看點

FAQ for webservices with axis2

    學習使用webservices已有一段時間,其中有許多迷惑和曲折,現将這些知識做個總結,為了便于了解和消除翻譯過程中的差異,本文使用中英文陳述。

FAQ  1:   調用webservices時,出現 “Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml” 的提示。

            Solution: 打開axis2.xml , 将<parameter name="disableREST" locked="true">true</parameter>改為<parameter name="disableREST" locked="true"> false</parameter>, 重新啟動servlet engine。

           Why: Axis2 has two different endpoints, one for REST (AxisRESTServlet) one for SOAP message handling (AxisServlet), if you disable the parameter "disableREST", you will got the above warning