保存 EJB3 WebService 消息的 SOAP xml
我有一个在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论