我这里显示的也是只有程序里面的方法,那还需要services.xml文件中配置Operation干什么呢

解决方案 »

  1.   

    Axis2 v0.94的官方配置说明文档里说:All the operations you are going to expose by the service 【has to】 be indicated in the services.xml 但是v1.0好像改变了Web服务方法的曝露策略,摘抄如下:If the service impl class is java then 【all the public methods in that service will be exposed】 and if user wants to override then he has to add operation tag and override that . In the case of Non-Java case or if you does not have service class then all the operations user wants to expose by the service has to be indicated in the services.xml
      

  2.   

    services.xml配置的说明文档地址:http://ws.apache.org/axis2/1_0/axis2config.html
    不过还是不够详细,我都没看出parameter元素的locked属性是用来做什么的
      

  3.   

    http://www.developer.com/open/print.php/10930_3589126_2这里也有一篇搜出的文章,对services.xml的书写有些补充
      

  4.   

    Axis2据说相比1有了很大的变化,不过目前在项目中,主要还是使用Axis来发布WebService,一是因为Axis简单易用,二是我们的应用也相对比较简单,用不上那些复杂的特性,使用Axis足矣不过Axis2的new feature第一个就是speed,对于大数据量的传输,这个特性可十分诱惑啊,准备好好看看 ^_^
    与楼主及楼上各位共勉