用Eclipse+Axis2+Tomcat5.5做了小例子 可是当输入http://localhost:8080/axis2/services/HelloWorldService时, 提醒Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml。 我的axis2.xml文件中与REST相关的部分如下:    <!-- If the enableRESTInAxis2MainServlet is true, then Axis2MainServlet will handle both SOAP and REST messages -->
    <parameter name="enableRESTInAxis2MainServlet" locked="true">false</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>disableREST已经是false了
如果把第一个enableRESTInAxis2MainServlet改成true, 结果就是该页无法显示请大家帮帮忙 这个问题是哪里出错了?

解决方案 »

  1.   

    此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
    楼主【ivyyuan1】截止到2008-06-23 10:26:15的历史汇总数据(不包括此帖):
    发帖数:1                  发帖分:20                 
    结贴数:0                  结贴分:0                  
    未结数:1                  未结分:20                 
    结贴率:0.00  %            结分率:0.00  %            
    如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
      

  2.   

    输入http://localhost:8080/axis2/services/HelloWorldService.wsdl
      

  3.   

    呵呵  你发布了你的services了么?
    如果发布了,输入http://localhost:8080/axis2/services/HelloWorldService.wsdl
    可以获取到这个wsdl然后根据它生成客户或服务器代码阿.
      

  4.   

    http://localhost:8080/axis2/services/HelloWorldService?wsdl 这个是可以打开的服务也发布了因为我在Eclipse3.3中运行的时候出错 说cannot be instantiated, 就是指向http://localhost:8080/axis2/services/HelloWorldService这个位置 问题描述在另一个帖子里 http://topic.csdn.net/u/20080619/15/13e88601-a1b2-4d1e-b980-a81f5e51cf37.html所以我猜测是不是因为这个链接打不开的原因但是现在在eclipse3.2里运行可以成功 很奇怪
      

  5.   

    不是http://localhost:8080/axis2/services/HelloWorldService.wsdl
    而是http://localhost:8080/axis2/services/HelloWorldService?wsdl
    本人已经试过了
      

  6.   

    求一个实例..webservice的.客户端和服务端都要.