使用浏览器地址栏调用CXF Webservice的写法

/*
* 通过url调用
* http://localhost:8080/EFP/webService/TestWebservice/testOut/arg0/liuyx
*/

 

http://localhost:8080/EFP/webService/TestWebservice/testOut/arg0/liuyx

其中:
http://localhost:8080/EFP/webService/TestWebservice?wsdl是webservice的地址

testOut是要调用的方法名

arg0代表其后边的liuyx是第一个参数,如果有更多的参数,在地址后边追加即可——写法如下

【/arg1/xxx/arg2/yyy】

 

访问应该结果是个xml。

 

posted @ 2016-07-26 11:42  剑握在手  阅读(3530)  评论(0)    收藏  举报
返回顶部↑