什么注释/属性定义了 Jaxb 中 wsdl 的 wsdl:definitions 部分?

发布于 2024-09-04 13:33:01 字数 107 浏览 0 评论 0原文

我们将 apache cxf 2.2.2 与 JaxB 一起使用,我需要将导出的 wsdl 的 wsdl:definitions 名称更改为其他名称。有谁知道我如何更改它(可能通过 JAXB 注释)?

We're using apache cxf 2.2.2 with JaxB and I need to change the wsdl:definitions name of an exported wsdl to something else. Does anyone know how I could change it, possibly via a JAXB annotation?

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

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

发布评论

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

评论(1

々眼睛长脚气 2024-09-11 13:33:01

假设您指的是 元素的 name 属性,该属性由 @WebService 的 serviceName 属性设置主实现类上的 注释。如果您需要比这更深入的配置,则必须告诉 CXF 提供您自己的自定义 WSDL,而不是从注释派生的 WSDL(我还没有尝试过这样做)。

Assuming you mean the name attribute of the <wsdl:definitions> element, that's set by the serviceName attribute of the @WebService annotation on your main implementation class. If you need any deeper configuration than that, you'll have to tell CXF to serve up your own custom WSDL instead of that which is derived from annotations (I've not experimented with doing that).

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