SOAPUI、SpringWS 和 Tomcat5.5 的问题
我一直在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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
我通过将 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.