如何将 Axis 生成的肥皂服务部署到嵌入式 Tomcat 实例

发布于 2024-08-07 23:45:04 字数 261 浏览 8 评论 0原文

我从 WSDL 生成了一个 Soap 服务,现在我需要将其部署到使用嵌入式 tomcat 的现有应用程序(即,我有一个扩展 TomcatServeletContainer 的类和一个实例化该类并启动服务器的主类)。

我看到很多关于如何使用 WAR 或 WSDD 将轴服务部署到独立 tomcat 的示例,但我自己不知道如何将它们连接在一起。我假设我必须在 web.xml 中定义一个servlet并提供一些其他的粘合剂。任何帮助或指向适当文档的指示将不胜感激。

谢谢! -卡尔

I generated a Soap Service from a WSDL and now I need to deploy it to my existing application which uses embedded tomcat (I.E. I have a class which extends TomcatServeletContainer and a main class which instantiates that class and starts the server).

I see many examples for how to deploy an axis service to a standalone tomcat using a WAR, or a WSDD, but I don't see how to wire it together myself. I assume I have to define a servelet in the web.xml and provide some other glue. Any assistance or pointers to appropriate documentation would be most appreciated.

Thanks!
-Carl

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

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

发布评论

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

评论(2

梦忆晨望 2024-08-14 23:45:04

你能让这个发挥作用吗?
我一直在尝试使用 Maven 构建一个 Web 服务(在包含轴 jar(带依赖项)+server-config.wsdd 的独立战争文件中)。我真的不想对 AdminClient 进行任何调用(意味着不安装 Axis)。

我已经使用 axistools-maven-plugin 从 WSDL 生成了服务器端源代码,在部署服务之前一切似乎都工作正常。 http://localhost:8080/myApp/services 为我提供了服务的名称和两个公开的方法。但是单击 wsdl 链接会显示一条 Axis 错误消息,告诉我“无法生成 WSDL!此位置没有 SOAP 服务”。

是否可以使用 Maven 以这种方式构建独立的 Axis Web 服务?

Have you been able to get this to work?
I've been trying to build a webservice (in a standalone war-file containing the axis jars (w/dependencies)+server-config.wsdd) using maven. I really don't want to make any calls to the AdminClient at all (meaning not to install Axis).

I've generated the server side sources from a WSDL using the axistools-maven-plugin, and everything seems to work ok until I have deployed the service. http://localhost:8080/myApp/services gives me the name of the service and two exposed methods. But clicking the wsdl link displays an Axis error message telling me "Could not generate WSDL! There is no SOAP service at this location".

Is it at all possible to build a standalone Axis webservice this way using maven?

<逆流佳人身旁 2024-08-14 23:45:04

是的,您需要以与 WAR 相同的方式构建应用程序,但以编程方式通知 tomcat 您在何处爆发了 war 生命。

其他一切都应该与标准 servlet 规范相同。

Yes, you will need build your application the same way you would for a WAR but programmatically inform tomcat where you exploded war lives.

Everything else should be the same as the standard servlet spec.

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