什么注释/属性定义了 Jaxb 中 wsdl 的 wsdl:definitions 部分?
我们将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您指的是
元素的name
属性,该属性由@WebService 的
注释。如果您需要比这更深入的配置,则必须告诉 CXF 提供您自己的自定义 WSDL,而不是从注释派生的 WSDL(我还没有尝试过这样做)。serviceName
属性设置主实现类上的Assuming you mean the
name
attribute of the<wsdl:definitions>
element, that's set by theserviceName
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).