在消息到达容器之前,是否有比 Jaxws SOAP Handler Interceptor 更好的操作 SOAP 消息的方法?

发布于 2024-09-11 12:28:28 字数 287 浏览 2 评论 0原文

我目前正在使用 jaxws 和 apache CXF 框架通过自上而下的方法创建 Web 服务。

我使用 SOAP 拦截器在消息到达容器之前使用 SAAJ 添加删除 SOAP 标头元素,并且容器将 SOAP 操作映射到 java 方法。我这样做是为了创建安全令牌服务 (STS),以促进 SAML2 配置文件的精简实现 - 将身份验证详细信息转换为可移植身份(SAML 身份验证断言)。

我不禁想到一定有一种更简单的方法来做到这一点。是否有一个框架可以让我更轻松地操纵消息?如果是这样,教程会有所帮助。

非常感谢

I am currently using the jaxws and apache CXF framework to create webservices using the top down approach.

I am using the SOAP interceptors to add remove SOAP header elements, using SAAJ, before the message gets to the container, and the container maps the SOAP action too the java method. I am doing this to create Security Token Services (STS) to facilitate a lite implementation of the SAML2 Profile - converting authentication details into portable identities (SAML Authentication Assertions).

I cannot help think there must be an easier way to do this. Is there a framework that will allow me to manipulate the message with more ease? and if so a tutorial would help.

Many thanks

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

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

发布评论

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

评论(1

薄荷港 2024-09-18 12:28:29

要更改 SOAP 消息中的内容,您必须使用 SOAP 处理程序。
也许更简单的方法是改变保护 Web 服务的方式,如果您使用 WS-Security 方式来做事,我们的容器将可以很好地工作,并且您不再需要处理程序。

To change things in SOAP messages you must use SOAP Handlers.
Maybe easier way to do it is changing the way you are securing your web service, if you use a WS-Security way of doing things, our container will work with it fine, and you don't need the handlers anymore.

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