The service cannot be found for the endpoint reference (EPR)
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" ;
}
}
什么原因???