axis2 发布webservice url路径的问题 假如我发布的地址是http://127.0.0.1:8080/axis2/services/hello现在想修改成http://127.0.0.1:8080/hello我改如何操作 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不可以。axis2 是应用名,这个可以改。services/hello 这个是固定格式。hello对应一个类。 这是axis2的标准、 如果是这样的话 要是想换新的程序 原来的接口不换的话 axis2岂不是悲剧啦 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的方法名 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中的一个方法。 不知要换的程序是指什么不管怎样,如果接口一样,webservice的调用变化时,顶多更新一下引用的URL xml里应该可以配置吧只不过是个映射而已。 是可以改的,我也遇到过这样的问题,还有一种解决方法是,不要将axis2的包单独放到服务器下去发布,当你新建web project的时候去引入axis2的包,到项目一起build发布; 可以到网上找下,新建webservice的介绍;很简单的; 这样说吧别人调用我的接口一直是 http://127.0.0.1:8080/hello 以前用c写的现在我想用axis+tomcat 发布一套java写的地址是http://127.0.0.1:8080/hello让别人调用 可以把axis和services修改成自定义的名称,不过好像改不了楼主希望的那样 链接都不想换一下,没得做。不用axis看能不能行。 Spring的线程安全问题 由于JAVA讨论群①人数已满新开JAVA讨论群② 希望大家踊跃参与 JSP中,如何清空用内置对象request从表单获得的数据? jsp & sql-dmo 问个tomcat设置问题 请问大家去哪里找兼职的? JSP Ajax 级联问题,请求帮助 form的问题。 tomcat中不能执行servlet??? html中的jsp不好用,急急!!! ibatis中一个insert语句多个sequence问题 jsp和servlet如何上传和下载文件
axis2 是应用名,这个可以改。
services/hello 这个是固定格式。hello对应一个类。 这是axis2的标准、
如果是这样的话 要是想换新的程序 原来的接口不换的话 axis2岂不是悲剧啦
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的方法名
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中的一个方法。
不知要换的程序是指什么
不管怎样,如果接口一样,webservice的调用变化时,顶多更新一下引用的URL
只不过是个映射而已。
现在我想用axis+tomcat 发布一套java写的地址是http://127.0.0.1:8080/hello
让别人调用
链接都不想换一下,没得做。不用axis看能不能行。