保存 EJB3 WebService 消息的 SOAP xml

发布于 2025-01-07 02:45:41 字数 464 浏览 6 评论 0原文

我有一个在 WebLogic 10.3.5 上提供 JAX-WS Web 服务的 EJB3 无状态会话 bean,

@WebService
@Stateless
public class DocumentService {
  @Resource
  WebServiceContext wsctx;

  ...
 }

我必须存储整个 SOAP 请求以供以后在数据库中使用。我在这个主题上所能找到的就是我可以使用该

SOAPMessageContext.getMessageContext().

方法获取消息。然而,可以通过 wsctx.getMessageContext() 获取的 MessageContext 似乎不是 weblogic 中的 SOAPMessageContext。

有没有办法从请求中获取xml消息?

提前致谢! 加博尔

I have an EJB3 stateless session bean providing JAX-WS webservice on WebLogic 10.3.5

@WebService
@Stateless
public class DocumentService {
  @Resource
  WebServiceContext wsctx;

  ...
 }

I would have to store the whole SOAP requests for later use in the database. All I could find on this topic is that I can get the message with the

SOAPMessageContext.getMessageContext().

method. However it seems that the MessageContext which can be aquired with wsctx.getMessageContext() is not a SOAPMessageContext in weblogic.

Is there a way to get the xml message from the request?

Thanks in advance!
Gábor

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文