找不到端点引用的服务
我需要调用一个使用 axis2 构建的网络服务。当我尝试调用该服务时,它抛出异常。 此异常是:无法找到端点引用的服务。 在 wsdl 文件中,我将位置属性设置为: http://localhost:8080/SMSWebServer/services/SMSWS< /a>.
在客户端中,我使用该端点来调用 Web 服务。
有人可以告诉我为什么会这样吗?
I need to call a web-service, that is built using axis2. When I try to call this service, it throw an exception.
This exception is: The service cannot be found for the endpoint reference.
In the wsdl file I set the location property to: http://localhost:8080/SMSWebServer/services/SMSWS.
In the client I use that endpoint to call the web-service.
Someone can tell me why it happens?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
免责声明:虽然我在异构环境中使用服务并处理混合架构,但我没有深入了解 Java 来向您指出“A 将解决您的问题”的答案。话虽如此……
我将从这里开始:
http://www.keith-chapman.org /2009/02/axis2-endpoint-reference-epr-for.html
有一个文章的链接,该文章解释了解决问题的更多细节。简单的答案是您尝试访问的端点的映射存在问题。一旦你解决了这个问题,你就会再次跑步。
DISCLAIMER: While I consume services in heterogenous environs, and deal with mixed architectures, I do not have the depth on Java to point you to a "A will fix your problem" answer. Having said that ...
I would start here:
http://www.keith-chapman.org/2009/02/axis2-endpoint-reference-epr-for.html
There is a link to an article that explains more detail to solving the problem. The simple answer is there is something wrong with the mapping to the endpoint you are trying to hit. Once you cure that problem, you will be running again.