The service cannot be found for the endpoint reference (EPR)

shui_bu_duo 2011-12-07 04:32:40
WebService初学者

浏览器 URL:
http://localhost:9999/axis2/services/listServices
出现如下,正常的显示:
Available services

Version

Service Description : Version

Service EPR : http://localhost:9999/axis2/services/Version

Service Status : Active


Available Operations
getVersion
SimpleService

Service Description : No description available for this service

Service EPR : http://localhost:9999/axis2/services/SimpleService

Service Status : Active


Available Operations
sayHelloWithParameter
sayHelloWithNoParameter

然后再浏览器地址栏URL:http://localhost:9999/axis2/services/listServices/sayHelloWithNoParameter

本来应该出现:hello

但是没有出现,报错:
<faultstring>
The service cannot be found for the endpoint reference (EPR) /axis2/services/listServices/sayHelloWithNoParameter
</faultstring>

java 代码:

public class SimpleService{
public String sayHelloWithParameter(String name){
return "hello" + name;
}

public String sayHelloWithNoParameter(){
return "hello" ;
}
}

什么原因???


...全文
2351 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
weisljl 2012-09-11
  • 打赏
  • 举报
回复
这问题真鸡肋,貌似网上没人解决
wang__1 2012-09-11
  • 打赏
  • 举报
回复
汗!手误 端口打错了!
wang__1 2012-09-11
  • 打赏
  • 举报
回复 1
LZ 是你那个URL错了
http://localhost:9999/axis2/services/listServices/sayHelloWithNoParameter
这个你改成
http://localhost:8080/axis2/services/SimpleService/sayHelloWithNoParameter
hnht1989 2012-09-10
  • 打赏
  • 举报
回复
遇到同样的问题,JDK是1.6的啊,求大师指点
飛ぶ鳥 2012-08-10
  • 打赏
  • 举报
回复
JDK版本问题,必须是1.6以上的版本
飛ぶ鳥 2012-08-10
  • 打赏
  • 举报
回复
JDK版本的问题,必须是1.6以上的版本
huangyul 2012-07-25
  • 打赏
  • 举报
回复
同样的问题,希望得到高人的指点呀
genglukuan 2012-06-23
  • 打赏
  • 举报
回复
你是用wsdd定义的文件吗?
zhen_away 2012-04-24
  • 打赏
  • 举报
回复
我今天也碰到了。。。求高人指点
shadow066 2012-04-16
  • 打赏
  • 举报
回复
我也是用到了同样的问题,有谁知道是怎么回事吗?

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧