SOAP头元素

发布于 2024-12-08 09:31:27 字数 234 浏览 4 评论 0原文

使用 JAX-WS 2.2.5 (Metro) 编写 Java 代码来为以下结构创建 SOAPHeaderElement 或 Element 对象所需的帮助

Metro 提供了 WSBindingProvider 在 Header 标记内创建标头,但是如何创建嵌套标头是问题(将用户和Auth 标签内的密码)。

任何帮助将不胜感激。 价值 价值

谢谢

required help to write Java code to create SOAPHeaderElement or Element object for the following structure using JAX-WS 2.2.5 (Metro)

Metro provides WSBindingProvider to create header within Header tag but, how to create a nested header is the question (putting user and password within Auth tag).

Any help would be appreciated.

value
value

Thank you

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

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

发布评论

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

评论(1

怎樣才叫好 2024-12-15 09:31:27

创建以用户和密码作为属性的 Auth 类。然后将该 auth 对象添加为标头。

Create Auth class which have user and password as the attributes. Then add that auth object as the Header.

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