gpt4 book ai didi

java - 测试 cxf 示例项目 java_first_spring_support 是否有效

转载 作者:行者123 更新时间:2023-11-28 22:28:45 27 4
gpt4 key购买 nike

基本问题。我已经编译并部署了在示例 cxf 项目 java_first_spring_support 中创建的 war 文件并部署到本地 tomcat(我遵循了此处给出的教程,但使用了来自 cxf 站点的最新版本:http://cxf.apache.org/docs/writing-a-service-with-spring.html)但无法弄清楚如何测试如果它工作?我的 tomcat 管理器列表应用程序页面显示它正在运行,但不确定除此之外还能做什么。

我可以通过浏览器使用 http 请求来查看 wsdl 吗?如果是这样,除了我的 'http://localhost:8080 之外我应该使用什么 url ' 网址?这个项目没有 wsdl,我应该只制作我自己的 soap 请求吗?如果是这样,结构应该是什么,我应该使用什么 url?

最佳答案

嗯,想通了。回到 web.xml 101 并找到了我的答案。

生成的 wsdl 可从 :- http://localhost:8080/JavaFirstSpringSupport/services/HelloWorld?wsdl

应用程序的上下文是:“JavaFirstSpringSupport”(从我在 tomcat 中的应用程序列表页面获取)
通过引用已部署的 web.xml 中的 url 模式元素获取服务部分

关于java - 测试 cxf 示例项目 java_first_spring_support 是否有效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31195672/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com