假如我发布的地址是http://127.0.0.1:8080/axis2/services/hello现在想修改成http://127.0.0.1:8080/hello
我改如何操作

解决方案 »

  1.   

    不可以。
    axis2 是应用名,这个可以改。
    services/hello 这个是固定格式。hello对应一个类。 这是axis2的标准、
      

  2.   


    如果是这样的话  要是想换新的程序  原来的接口不换的话  axis2岂不是悲剧啦
      

  3.   

    http://127.0.0.1:8080/axis2/services/helloaxis2 是webservice名 
    hello只是webservice中的一个方法名才对吧你可以看看 server-config.wsdd 
     <service name="Version" provider="java:RPC">
      <parameter name="allowedMethods" value="getVersion"/>
      <parameter name="className" value="org.apache.axis.Version"/>
     </service>服务名 :Version 
    对应的类是 :org.apache.axis.Versionhttp://127.0.0.1:8080/axis2/service会列出
    Version
      对应类中所有public的方法名
      

  4.   


    hello是一个webservice;对应一个实现类引用URL:http://127.0.0.1:8080/axis2/services/hello?wsdl
    方法表示:http://127.0.0.1:8080/axis2/services/hello?method=sayHellosayHello表示类hello中的一个方法。
      

  5.   


    不知要换的程序是指什么
    不管怎样,如果接口一样,webservice的调用变化时,顶多更新一下引用的URL
      

  6.   

    xml里应该可以配置吧
    只不过是个映射而已。
      

  7.   

    是可以改的,我也遇到过这样的问题,还有一种解决方法是,不要将axis2的包单独放到服务器下去发布,当你新建web project的时候去引入axis2的包,到项目一起build发布;
      

  8.   

    可以到网上找下,新建webservice的介绍;很简单的;
      

  9.   

    这样说吧别人调用我的接口一直是  http://127.0.0.1:8080/hello  以前用c写的
    现在我想用axis+tomcat  发布一套java写的地址是http://127.0.0.1:8080/hello
    让别人调用    
      

  10.   

    可以把axis和services修改成自定义的名称,不过好像改不了楼主希望的那样
      

  11.   


    链接都不想换一下,没得做。不用axis看能不能行。