使用浏览器地址栏调用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。

原文地址:https://www.cnblogs.com/flying607/p/5706903.html