在会话中存储Axis原始XML请求/响应(将在JSP中使用) [英] Store Axis raw XML request/response in session (to be used in JSP)

查看:65
本文介绍了在会话中存储Axis原始XML请求/响应(将在JSP中使用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果可能的话,如何获得Axis在应用程序中调用/检索的原始XML请求/响应?

How, if possible, do I get the raw XML request/response that is invoked/retrieved by Axis in my application?

我正在使用Axis附带的WSDL2Java来生成Java存根.

I'm using WSDL2Java that is included with Axis to generate the Java stubs.

我目前拥有的是一个使用Axis处理远程API调用的应用程序.

What I currently have is an app that uses Axis to handle the remote API calls.

其中一项要求是将这些调用中的所有XML请求/响应存储"在会话中,以便在JSP中可用(出于调试目的).我该如何实现?

One of the requirement is to 'store' all the XML request/response from these calls in the session so that it will be available in the JSP (for debugging purposes). How can I achieve this?

我尝试编写一个自定义处理程序extends BasicHandler,但是在该处理程序中,我仍然无法从MessageContext

I tried writing a custom handler that extends BasicHandler but in that handler, I still can't get the HttpServletRequest/HttpServletResponse pair from the MessageContext

推荐答案

我最终使用了基本上,我用它来保存HttpServletRequest,然后从那里在会话中设置适当的项.

Basically, I use it to get a hold of the HttpServletRequest and from there I set the proper item in the session.

这篇关于在会话中存储Axis原始XML请求/响应(将在JSP中使用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆