Java 异常:AXIS 引擎找不到要调用的目标服务!targetService 是 SecurityDepositServiceImpl

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6650326/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-16 12:22:57  来源:igfitidea点击:

exception: The AXIS engine could not find a target service to invoke! targetService is SecurityDepositServiceImpl

javaweb-servicesspring

提问by Balasaheb

I am new to web-service and I have created one web service in my existing project using eclipse 'Bottom Up java Bean service', server is Tomcat 6, Spring Framework 2.5, and not using Maven and Ant. In my project eclipse automatically included all required jars in lib but when I try to invoke getName() from browser it gives error like: exception: The AXIS engine could not find a target service to invoke! targetService is SecurityDepositServiceImpl So please suggest me what should I do to run my service?

我是 Web 服务的新手,我使用 eclipse 'Bottom Up java Bean service' 在现有项目中创建了一个 Web 服务,服务器是 Tomcat 6、Spring Framework 2.5,而不是使用 Maven 和 Ant。在我的项目 eclipse 中,自动在 lib 中包含了所有必需的 jar,但是当我尝试从浏览器调用 getName() 时,它给出如下错误:异常:AXIS 引擎找不到要调用的目标服务!targetService 是 SecurityDepositServiceImpl 所以请建议我应该怎么做才能运行我的服务?

采纳答案by pixelbobby

I have recieved this error in the past. You will get this error if it cannot find the service name in the URL. Keep in mind the URL is also case-sensative. You should be able to hit the URL in the browser and recieve a message like so:

我过去收到过这个错误。如果在 URL 中找不到服务名称,您将收到此错误。请记住,URL 也是区分大小写的。您应该能够在浏览器中点击 URL 并收到如下消息:

YourWebServiceName
Hi there, this is an AXIS service!
Perhaps there will be a form for invoking the service here...

YourWebServiceName
您好,这是 AXIS 服务!
也许这里会有一个调用服务的表格......

I also fixed this issue before when there was a trailing slash "YourService/" in the URL! Watch out for that one too! Took me FOREVER to find it.

在 URL 中出现斜杠“YourService/”之前,我也解决了这个问题!也要注意那个!带我永远找到它。