SOAPUI、SpringWS 和 Tomcat5.5 的问题

发布于 2024-09-30 12:29:37 字数 875 浏览 6 评论 0原文

我一直在尝试使用 SpringWS 和 Tomcat5.5 获取一个示例 Web 服务,

我遵循了以下示例:

1)http://justcompiled.blogspot.com/2010/09/building-...eb-service-with-spring -ws.html

2)http://jamesbnuzzo.wordpress.com/2009/04/14/spring...s-with-jaxb-maven-amp-eclipse/

后者有一个 ZIP 文件,其中包含要删除的 WAR到 Tomcat

在这两个示例中,Web 服务都运行,我可以查看 WSDL 文件(例如:http://localhost:8080/eightball/eightball.wsdl)

但是,当我启动 SOAPUI 版本 3.6.1 时,导入 WSDL,设置端点例如 http://localhost:8080/eightball/eightball,然后尝试提交请求到该端点,我收到以下错误。

11 月 5 日星期五 19:49:05 GMT 2010:信息:获取 [eightballSoap11.eightBall:请求 1] 的响应时出错; java.net.ConnectException: 连接被拒绝:连接

在第一个示例中,我使用 Eclipse Helios 来开发 WebService 并将其发布到 Tomcat。在这种情况下使用 SOAPUI 是有效的,我得到了预期的响应。

当我将同一个项目导出到 WAR 文件并部署到 Tomcat 上时,出现 SOAPUI 连接异常?!?!

有人可以帮忙吗....

Ive been trying to get an example Web Service working using SpringWS and Tomcat5.5

Ive followed examples such as:

1)http://justcompiled.blogspot.com/2010/09/building-...eb-service-with-spring-ws.html

2)http://jamesbnuzzo.wordpress.com/2009/04/14/spring...s-with-jaxb-maven-amp-eclipse/

The latter has an ZIP file which includes the WAR to drop into Tomcat

In both examples the Web Service runs and I can view the WSDL file (eg:http://localhost:8080/eightball/eightball.wsdl)

However, when I startup SOAPUI version 3.6.1, import the WSDL, set the endpoint for example to http://localhost:8080/eightball/eightball, and then try to submit a request to that endpoint, I get the following error.

Fri Nov 05 19:49:05 GMT 2010:INFO:Error getting response for [eightballSoap11.eightBall:Request 1]; java.net.ConnectException: Connection refused: connect

With the 1st example I used Eclipse Helios to develop and publish the WebService to Tomcat. Using SOAPUI in this scenario worked and I got the expected Responses back.

When I exported the same project to a WAR file and deployed on Tomcat, I got the SOAPUI connection exception ?!?!

Can anybody please help....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

迷爱 2024-10-07 12:29:37

Tomcat/SpringWS 使用哪个 SOAP 版本,SOAP 1.0 和 1.2 之间可能存在差异

Which SOAP-Version does the Tomcat/SpringWS use, there might be a discrepancy between SOAP 1.0 and 1.2

沐歌 2024-10-07 12:29:37

我通过将 address="0.0.0.0" 添加到 server.xml 中的 Connector 元素解决了这个问题。

发现的问题还意味着 Tomcat 无法通过地址 127.0.0.1:8080 访问,只能通过 localhost:8080 访问。

我认为这完全取决于 Windows 如何侦听 IPv4 和 IPv6 的环回地址。

I resolved this problem by adding in address="0.0.0.0" to the Connector element in server.xml.

The problem identified also meant that Tomcat could not be reached on address 127.0.0.1:8080 and only by localhost:8080

I think its all down to how Windows was listening on the loopback address for IPv4 and IPv6.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文