学习使用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
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