tomcat SOAUI 模拟 Web 服务
我有一个 .war 文件,它是通过“deployaswar”选项从soapui模拟服务创建的,并部署到Tomcat 5.5。我可以在 Firefox 中成功查看 WSDL,但注意到 xsd 导入的 schemaLocation 属性无效。以下是当前的 URL 格式:
http://localhost:8080/?WSDL& interface=UserServicePortBinding&part=User.xsd
Tomcat 中缺少 Web 应用程序名称。我通过构建正确的 URL 并查看 xsd 来验证这一点:
http:// localhost:8080/wartest?WSDL&interface=UserServicePortBinding&part=User.xsd
我还注意到 xsd 中的其他引用有同样的问题。我该如何纠正这个问题?
谢谢。
I have a .war file which was created from a soapui mock service via the 'deployaswar' option and deployed to Tomcat 5.5. I can successfully view the WSDL in firefox but noticed the the schemaLocation attribute for my xsd import is invalid. Here is the current URL format:
http://localhost:8080/?WSDL&interface=UserServicePortBinding&part=User.xsd
It's missing the web application name in tomcat. I verified this by constructing the correct URL and viewing the xsd:
http://localhost:8080/wartest?WSDL&interface=UserServicePortBinding&part=User.xsd
I also noticed the other references in the xsd have the same issue. How can I correct this?
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己想出了这个办法。问题是使用“位于服务器上的部署目录或 WAR 文件”来部署战争并将上下文路径设置为: /
这使得一切正常工作。
I figured this out for myself. It was a matter of using "Deploy directory or WAR file located on server" to deploy the war and setting the context path to: /
That allowed everything to work correctly.