You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Gianpiero <gi...@nch.it> on 2001/10/19 09:11:52 UTC
SoapContext
I have seen in the doPost() method of SOAP main servlet
(org.apache.soap.server.http.RPCRouterServlet.class) that some HTTP context
information are copied in the request SOAP Context. Here is the original
code
<---- CUT HERE ---->
SOAPContext reqCtx = new SOAPContext();
SOAPContext resCtx = new SOAPContext();
...
reqCtx.setProperty( Constants.BAG_HTTPSERVLET, this );
reqCtx.setProperty( Constants.BAG_HTTPSESSION, session );
reqCtx.setProperty( Constants.BAG_HTTPSERVLETREQUEST, req );
reqCtx.setProperty( Constants.BAG_HTTPSERVLETRESPONSE, res );
<---- CUT HERE ---->
why not copying the same informations even in the response SOAPContext? It
could be useful in many place, such as the Serializer/Deserializer
interface. Here are the lines that could be added after the former:
<---- CUT HERE ---->
resCtx.setProperty( Constants.BAG_HTTPSERVLET, this );
resCtx.setProperty( Constants.BAG_HTTPSESSION, session );
resCtx.setProperty( Constants.BAG_HTTPSERVLETREQUEST, req );
resCtx.setProperty( Constants.BAG_HTTPSERVLETRESPONSE, res );
<---- CUT HERE ---->
Thanks,
Gianpiero